DescriptionRuntime call counters and timers.
In d8, run with --runtime-call-stats and it will output the stats when d8 finishes.
In Chrome, run the following: (only on trusted code, this punches *massive* security hole into Chrome)
chrome --js-flags="--runtime-call-stats --allow-natives-syntax"
To get the stats in the console, just run
console.log(%GetAndResetRuntimeCallStats());
To output stats every second:
setInterval(function() { console.log(%GetAndResetRuntimeCallStats()); }, 1000)
Committed: https://crrev.com/747bd6f2150134196b7b95c89320a15eeefc5263
Cr-Commit-Position: refs/heads/master@{#33462}
Patch Set 1 #Patch Set 2 : Use manipulators #Patch Set 3 : Fix #Patch Set 4 : Attempt to fix win #Patch Set 5 : Another attempt #Patch Set 6 : Attempt 3 #Patch Set 7 : Attempt 4 #Patch Set 8 : Runtime function for getting the stats #
Total comments: 1
Patch Set 9 : Tweaks #
Messages
Total messages: 10 (6 generated)
|