evilsong / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

sampling test fail in ubuntu #472

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure
2. make
3. ./sampling_debug_test.sh or ./sampling_test.sh

What is the expected output? What do you see instead?
I don't know the expected output.

For sampling_debug_test, I see..............................................
Testing heap output...
Using local file /opt/proj/3rdparty/gperftools-2.0/.libs/lt-sampling_test.
Using local file /tmp/sampling_test_dir/out.heap.
WARNING: 
WARNING: This heap profile does not have any data in it, because
WARNING: the application was run with heap sampling turned off.
WARNING: To get useful data from GetHeapSample(), you must
WARNING: set the environment variable TCMALLOC_SAMPLE_PARAMETER to
WARNING: a positive sampling period, such as 524288.
WARNING: 
Adjusting heap profiles for 1-in-128KB sampling rate
Heap version 2
FAILED.  Output from ./src/pprof --text 
/opt/proj/3rdparty/gperftools-2.0/.libs/lt-sampling_test 
/tmp/sampling_test_dir/out.heap
----
Using local file /opt/proj/3rdparty/gperftools-2.0/.libs/lt-sampling_test.
Using local file /tmp/sampling_test_dir/out.heap.
WARNING: 
WARNING: This heap profile does not have any data in it, because
WARNING: the application was run with heap sampling turned off.
WARNING: To get useful data from GetHeapSample(), you must
WARNING: set the environment variable TCMALLOC_SAMPLE_PARAMETER to
WARNING: a positive sampling period, such as 524288.
WARNING: 
Adjusting heap profiles for 1-in-128KB sampling rate
Heap version 2
----

For sampling_test, I see..............................................
Testing heap output...
Using local file /opt/proj/3rdparty/gperftools-2.0/.libs/lt-sampling_test.
Using local file /tmp/sampling_test_dir/out.heap.
WARNING: 
WARNING: This heap profile does not have any data in it, because
WARNING: the application was run with heap sampling turned off.
WARNING: To get useful data from GetHeapSample(), you must
WARNING: set the environment variable TCMALLOC_SAMPLE_PARAMETER to
WARNING: a positive sampling period, such as 524288.
WARNING: 
Adjusting heap profiles for 1-in-128KB sampling rate
Heap version 2
FAILED.  Output from ./src/pprof --text 
/opt/proj/3rdparty/gperftools-2.0/.libs/lt-sampling_test 
/tmp/sampling_test_dir/out.heap
----
Using local file /opt/proj/3rdparty/gperftools-2.0/.libs/lt-sampling_test.
Using local file /tmp/sampling_test_dir/out.heap.
WARNING: 
WARNING: This heap profile does not have any data in it, because
WARNING: the application was run with heap sampling turned off.
WARNING: To get useful data from GetHeapSample(), you must
WARNING: set the environment variable TCMALLOC_SAMPLE_PARAMETER to
WARNING: a positive sampling period, such as 524288.
WARNING: 
Adjusting heap profiles for 1-in-128KB sampling rate
Heap version 2
----

What version of the product are you using? On what operating system?
gperftools 2.0.
I test ubuntu 10.04, 12.04, and 12.10, and get the same result.

Please provide any additional information below.
I see the warning that not set the env TCMALLOC_SAMPLE_PARAMETER, and I set the 
env, just fix the warning, also get failed.

Original issue reported on code.google.com by xiaoyur...@gmail.com on 21 Oct 2012 at 1:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It works now.
1. CXXFLAGS=-fexceptions ./configure
2. make
3. export TCMALLOC_SAMPLE_PARAMETER=1024
4. ./sampling_debug_test.sh or ./sampling_test.sh
PASS

Original comment by xiaoyur...@gmail.com on 21 Oct 2012 at 7:08

GoogleCodeExporter commented 9 years ago
Interesting. So you initially had exceptions turned off by default?

Original comment by chapp...@gmail.com on 29 Oct 2012 at 12:35

GoogleCodeExporter commented 9 years ago

Original comment by chapp...@gmail.com on 29 Oct 2012 at 12:35

GoogleCodeExporter commented 9 years ago
Nothing further to be done here.

Original comment by chapp...@gmail.com on 22 Dec 2012 at 6:43