Skip to content

Commit

Permalink
Attempts to fix issue stopping cpu profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
c4milo committed Apr 5, 2012
1 parent 79860b5 commit 1e0c839
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions v8-profiler.js
Expand Up @@ -214,6 +214,7 @@ exports.startProfiling = function(name) {
}

exports.stopProfiling = function(name) {
name = name ? name : '';
var profile = binding.cpuProfiler.stopProfiling(name);
profile.__proto__ = CpuProfile.prototype;
cpuCache.push(profile);
Expand Down

0 comments on commit 1e0c839

Please sign in to comment.