Skip to content

Instantly share code, notes, and snippets.

@morkai
Created October 25, 2018 08:56
Show Gist options
  • Save morkai/4c2b3bc3cec692dfb30076eaa4ae1ee8 to your computer and use it in GitHub Desktop.
Save morkai/4c2b3bc3cec692dfb30076eaa4ae1ee8 to your computer and use it in GitHub Desktop.
Statistical profiling result from isolate-1234567-v8.log, (26390 ticks, 0 unaccounted, 0 excluded).
[Shared libraries]:
ticks total nonlib name
26352 99.9% C: WS M32
tdll.dll
35 0.1% C: am Files
odejs
ode.exe
1 0.0% C: WS m32LBASE.dll
[JavaScript]:
ticks total nonlib name
1 0.0% 50.0% Script: ~<anonymous> internal/url.js:1:11
1 0.0% 50.0% Builtin: InterpreterEntryTrampoline
[C++]:
ticks total nonlib name
[Summary]:
ticks total nonlib name
2 0.0% 100.0% JavaScript
0 0.0% 0.0% C++
1 0.0% 50.0% GC
26388 100.0% Shared libraries
[C++ entry points]:
ticks cpp total name
[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 1.0% are not shown.
ticks parent name
26352 99.9% C: WS M32
tdll.dll
Statistical profiling result from isolate-v11.log, (33082 ticks, 300 unaccounted, 0 excluded).
[Shared libraries]:
ticks total nonlib name
9762 29.5% C:\WINDOWS\SYSTEM32\ntdll.dll
6951 21.0% C:\Program Files\nodejs\node.exe
1 0.0% C:\WINDOWS\System32\KERNEL32.DLL
[JavaScript]:
ticks total nonlib name
4621 14.0% 28.2% Builtin: KeyedLoadIC_Megamorphic
3577 10.8% 21.9% LazyCompile: *processTimers timers.js:253:23
2875 8.7% 17.6% LazyCompile: *listOnTimeout timers.js:273:23
2268 6.9% 13.9% Builtin: CallApiCallback_Argc0
2036 6.2% 12.4% Builtin: KeyedLoadIC
511 1.5% 3.1% Builtin: StrictEqual
169 0.5% 1.0% Builtin: KeyedLoadICTrampoline
3 0.0% 0.0% LazyCompile: ~processTimers timers.js:253:23
2 0.0% 0.0% LazyCompile: ~listOnTimeout timers.js:273:23
2 0.0% 0.0% Builtin: InterpreterEntryTrampoline
1 0.0% 0.0% LazyCompile: ~peek internal/linkedlist.js:9:14
1 0.0% 0.0% LazyCompile: ~newAsyncId internal/async_hooks.js:254:20
1 0.0% 0.0% LazyCompile: ~_tickCallback internal/process/next_tick.js:41:25
1 0.0% 0.0% LazyCompile: *_tickCallback internal/process/next_tick.js:41:25
[C++]:
ticks total nonlib name
[Summary]:
ticks total nonlib name
16068 48.6% 98.2% JavaScript
0 0.0% 0.0% C++
1 0.0% 0.0% GC
16714 50.5% Shared libraries
300 0.9% Unaccounted
[C++ entry points]:
ticks cpp total name
[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 1.0% are not shown.
ticks parent name
9762 29.5% C:\WINDOWS\SYSTEM32\ntdll.dll
6951 21.0% C:\Program Files\nodejs\node.exe
4621 66.5% LazyCompile: *processTimers timers.js:253:23
2282 32.8% LazyCompile: *listOnTimeout timers.js:273:23
2282 100.0% LazyCompile: *processTimers timers.js:253:23
4621 14.0% Builtin: KeyedLoadIC_Megamorphic
4621 100.0% LazyCompile: *listOnTimeout timers.js:273:23
4621 100.0% LazyCompile: *processTimers timers.js:253:23
3577 10.8% LazyCompile: *processTimers timers.js:253:23
2875 8.7% LazyCompile: *listOnTimeout timers.js:273:23
2692 93.6% LazyCompile: *processTimers timers.js:253:23
2268 6.9% Builtin: CallApiCallback_Argc0
1376 60.7% LazyCompile: *processTimers timers.js:253:23
2036 6.2% Builtin: KeyedLoadIC
1890 92.8% LazyCompile: *listOnTimeout timers.js:273:23
1890 100.0% LazyCompile: *processTimers timers.js:253:23
146 7.2% LazyCompile: *processTimers timers.js:253:23
511 1.5% Builtin: StrictEqual
511 100.0% LazyCompile: *listOnTimeout timers.js:273:23
511 100.0% LazyCompile: *processTimers timers.js:253:23
Statistical profiling result from isolate-v8.log, (31534 ticks, 0 unaccounted, 0 excluded).
[Shared libraries]:
ticks total nonlib name
31488 99.9% C:\WINDOWS\SYSTEM32\ntdll.dll
42 0.1% C:\Program Files\nodejs\node.exe
2 0.0% C:\WINDOWS\System32\KERNEL32.DLL
1 0.0% C:\tools\cmder\vendor\conemu-maximus5\ConEmu\ConEmuHk64.dll
1 0.0% C:\WINDOWS\System32\KERNELBASE.dll
[JavaScript]:
ticks total nonlib name
[C++]:
ticks total nonlib name
[Summary]:
ticks total nonlib name
0 0.0% NaN% JavaScript
0 0.0% NaN% C++
1 0.0% Infinity% GC
31534 100.0% Shared libraries
[C++ entry points]:
ticks cpp total name
[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 1.0% are not shown.
ticks parent name
31488 99.9% C:\WINDOWS\SYSTEM32\ntdll.dll
'use strict';
const N = 10;
function noop() {}
function test()
{
console.log(new Date().toISOString(), 'TEST');
const timers = [];
for (let i = 1; i <= N; ++i)
{
timers.push(setTimeout(noop, i * 1000));
}
setTimeout(() => timers.forEach(t => clearTimeout(t)), 5000);
setTimeout(test, 10000);
}
test();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment