why "node --prof test.js" does not work ?

78 views
Skip to first unread message

Hyanglan Park

unread,
Aug 5, 2014, 9:04:07 AM8/5/14
to nod...@googlegroups.com

Does anyone know why "node --prof test.js" not work ?

What I did are followings:

git clone https://github.com/joyent/node.git 
./configure 
make 
sudo make install 
cd node/deps/v8/ 
make dependencies 
make native 
vim test.js 
node --prof test.js 
tools/linux-tick-processor v8.log

The results are: 
Statistical profiling result from v8.log, (0 ticks, 0 unaccounted, 0 excluded).  <-- why ??

I know that the results should be like the follwoings:

Statistical profiling result from /home/hyanglan/v8/demo/v8.log, (3 ticks, 0 unaccounted, 0 excluded).

 [Shared libraries]:

   ticks  total  nonlib   name

      1   33.3%    0.0%  [vdso]

 [JavaScript]:

   ticks  total  nonlib   name

 [C++]:

   ticks  total  nonlib   name

      1   33.3%   50.0%  v8::internal::TypeImpl<v8::internal::HeapTypeConfig>::ConstantType::Bound()

      1   33.3%   50.0%  v8::internal::LInstruction::IsControl() const

 [GC]:

   ticks  total  nonlib   name

      0    0.0%

 [Bottom up (heavy) profile]:

  Note: percentage shows a share of a particular caller in the total

  amount of its parent calls.

  Callers occupying less than 2.0% are not shown.

   ticks parent  name

      1   33.3%  v8::internal::TypeImpl<v8::internal::HeapTypeConfig>::ConstantType::Bound()

      1   33.3%  v8::internal::LInstruction::IsControl() const

      1   33.3%  [vdso]

      1  100.0%    LazyCompile: InstantiateFunction native apinatives.js:31:29

      1  100.0%      LazyCompile: ~Instantiate native apinatives.js:10:21

      1  100.0%        LazyCompile: ConfigureTemplateInstance native apinatives.js:63:35

      1  100.0%          LazyCompile: ~Instantiate native apinatives.js:10:21

      1  100.0%            LazyCompile: InstantiateFunction native apinatives.js:31:29


Ben Noordhuis

unread,
Aug 5, 2014, 11:07:17 PM8/5/14
to nod...@googlegroups.com
What does test.js contain? I suspect that the answer is "(almost)
nothing" because the tick processor reports only start-up related
stuff.
Reply all
Reply to author
Forward
0 new messages