siddeshpillai / lightweight-java-profiler Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/lightweight-java-profiler
License: Apache License 2.0
Automatically exported from code.google.com/p/lightweight-java-profiler
License: Apache License 2.0
I use Mac OS X Yosemite and had problems with compiling the project.
I attach the changes I needed to get it build.
Original issue reported on code.google.com by [email protected]
on 28 Nov 2014 at 4:51
Attachments:
What steps will reproduce the problem?
1. svn chekcout code
2. vi MAKE file change BITS?=32 to BITS?=64
3. make all
What is the expected output? What do you see instead?
cc1plus: error: unrecognized command line option "-Wframe-larger-than=16384"
cc1plus: error: unrecognized command line option "-Wno-unused-but-set-variable"
cc1plus: error: unrecognized command line option "-Wunused-but-set-parameter"
cc1plus: error: unrecognized command line option "-Wvla"
cc1plus: error: unrecognized command line option "-Wno-conversion-null"
cc1plus: error: unrecognized command line option "-Wno-builtin-macro-redefined"
cc1plus: error: unrecognized command line option "-Wno-strict-overflow"
cc1plus: error: unrecognized command line option "-std=gnu++0x"
gcc version
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --disable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
--host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)
Original issue reported on code.google.com by [email protected]
on 30 Sep 2014 at 2:12
What steps will reproduce the problem?
1. In globals.h, change the kNumInterrupts to 30, and the kMaxStackTraces to
30000 (to make sure there will be enough space to record the whole execution)
2. Run the attached java file
3. Look for all List1.writeInt stack traces. One of those comes from a
computeList2 method, which should never happen.
To spot it more easily, use the following command :
$> pcregrep -Mn "List1\.writeInt(.*\n){5}.*List2" filename
What is the expected output? What do you see instead?
Expected : The List1.writeInt method is only called by the computeList1 method.
Actual : Some stacktraces show the computeList2 method as calling
List1.writeInt.
What version of the product are you using? On what operating system?
openjdk7u25, on RedHat 6.4.
Additional informations:
I will be working on a simplier version of the java class that reproduces the
bug, if possible.
Original issue reported on code.google.com by [email protected]
on 31 Jul 2013 at 8:05
Attachments:
What steps will reproduce the problem?
1. About JDK
$ java -version
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) Server VM (build 24.60-b09, mixed mode)
$ ldd $(which java) # check if 32 or 64 bit version is in use
libthread.so.1 => /lib/libthread.so.1
libjli.so => /usr/jdk/instances/jdk1.7.0_60/bin/../lib/i386/jli/libjli.so
libdl.so.1 => /lib/libdl.so.1
libc.so.1 => /lib/libc.so.1
libm.so.2 => /lib/libm.so.2
2. Prepare Make file
$ grep ^INCLUDES Makefile # added last 2 entries, JAVA_HOME=/usr/jdk/latest
INCLUDES=-I$(JAVA_HOME)/$(HEADERS) -I$(JAVA_HOME)/$(HEADERS)/$(UNAME)
-I/usr/jdk/latest/include -I/usr/jdk/latest/include/solaris
3. Compile (tried with gcc from distribution and):
$ CC=/usr/gcc/4.7/bin/gcc gmake all
/usr/gcc/4.7/bin/gcc -I/usr/jdk/latest/ -I/usr/jdk/latest//sunos
-I/usr/jdk/latest/include -I/usr/jdk/latest/include/solaris
-fdiagnostics-show-option -fno-exceptions -fno-omit-frame-pointer
-fno-strict-aliasing -funsigned-char -fno-asynchronous-unwind-tables -m32
-msse2 -g -D__STDC_FORMAT_MACROS -Wall -Werror -Wformat-security
-Wno-char-subscripts -Wno-sign-compare -Wno-strict-overflow -Wwrite-strings
-Wnon-virtual-dtor -Woverloaded-virtual -O2 -Fvisibility=hidden -fPIC -c
/export/NoBackup/Downloads/lightweight-java-profiler-read-only/src/entry.cc -o
build-32/entry.pic.o
/export/NoBackup/Downloads/lightweight-java-profiler-read-only/src/entry.cc: In
function ‘void SetFileFromOption(char*)’:
/export/NoBackup/Downloads/lightweight-java-profiler-read-only/src/entry.cc:185:
13: error: ‘exit’ was not declared in this scope
/export/NoBackup/Downloads/lightweight-java-profiler-read-only/src/entry.cc: In
function ‘void ParseArguments(char*)’:
/export/NoBackup/Downloads/lightweight-java-profiler-read-only/src/entry.cc:210:
13: error: ‘exit’ was not declared in this scope
gmake: *** [build-32/entry.pic.o] Error 1
3. Failed
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Version from SVN:
$ [2014-06-17 10:37:29] svn checkout
http://lightweight-java-profiler.googlecode.com/svn/trunk/
lightweight-java-profiler-read-only
OS is OpenIndiana (/hipster release):
$ head -1 /etc/release
OpenIndiana Development oi_151.1.8 X86 (powered by illumos)
$ uname -rosv
SunOS 5.11 illumos-3339235 Solaris
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 Jun 2014 at 9:01
There is enough support currently in head to compile without complaint for OS X
and do nothing.
The problem is relatively clear. setitimer(SIGPROF) on OS X seems to be
delivered to the first thread that doesn't mask it. This is always the main
thread, which isn't a Java thread.
A solution is to have a separate thread that wakes up at intervals, suspends a
random application thread, and profiles it. This seems to be possible using
thread_suspend and thread_get_state (in the /usr/include/mach directories).
I've run out of time to do this today, though, so I'm filing a bug to remind
myself to do it at some later date.
Original issue reported on code.google.com by [email protected]
on 3 Aug 2013 at 10:03
it would be very useful to start again from fresh every N seconds, and output
to a different file.
That would allow timeseries analysis of long running processes.
Original issue reported on code.google.com by [email protected]
on 29 Sep 2014 at 1:48
Using Ubuntu 14.04 64-bit. Built from @12 with patch from #3 applied. In both
JDK 7u55 and 6u45, when I run an application (Jenkins) with the agent loaded,
`traces.txt` is created but has no content. When I interrupt the process with
Ctrl-C, the following is printed:
{{{
One of your monitoring interfaces is having trouble resolving its stack traces.
GetMethodName on a jmethodID involved in a stacktrace resulted in an
INVALID_METHODID error which usually indicates its declaring class has been
unloaded.
}}}
Original issue reported on code.google.com by [email protected]
on 28 May 2014 at 5:16
lightweight-java-profiler fails to build on Ubuntu 13.10 (Saucy):
/home/adam/src/lightweight-java-profiler/src/display.cc:23:22: error: invalid
suffix on literal; C++11 requires a space between literal and identifier
[-Werror=literal-suffix]
fprintf(file_, "%"PRIdPTR" ", traces[i].count);
The fix is trivial; patch attached.
Original issue reported on code.google.com by [email protected]
on 5 Oct 2013 at 8:46
Attachments:
display.cc:23:22: warning: invalid suffix on literal; C++11 requires a space
between literal and identifier [-Wliteral-suffix]
fprintf(file_, "%"PRIdPTR" ", traces[i].count);
Original issue reported on code.google.com by [email protected]
on 29 Sep 2014 at 1:08
Docs have the following:
-agentpath:path/to/liblagent.so[:file=fname]
Should be:
-agentpath:path/to/liblagent.so[=file=fname]
Original issue reported on code.google.com by [email protected]
on 18 Oct 2014 at 5:54
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.