Index: src/debug-delay.js |
diff --git a/src/debug-delay.js b/src/debug-delay.js |
index 14d8c8830dc9fe1ba3167794b5fb1c26cff0c201..754ac5d0480b1f3e249204edfc42244638e8ec44 100644 |
--- a/src/debug-delay.js |
+++ b/src/debug-delay.js |
@@ -1934,10 +1934,14 @@ DebugCommandProcessor.prototype.profileRequest_ = function(request, response) { |
if (isNaN(modules)) { |
return response.failed('Modules is not an integer'); |
} |
+ var tag = parseInt(request.arguments.tag); |
+ if (isNaN(tag)) { |
+ tag = 0; |
+ } |
if (request.arguments.command == 'resume') { |
- %ProfilerResume(modules); |
+ %ProfilerResume(modules, tag); |
} else if (request.arguments.command == 'pause') { |
- %ProfilerPause(modules); |
+ %ProfilerPause(modules, tag); |
} else { |
return response.failed('Unknown command'); |
} |