Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: Source/devtools/front_end/timeline/TracingTimelineModel.js

Issue 324913003: Timeline: move TracingTimelineModel.reset() call from startRecording() to _startRecordingWithCatego… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/timeline/TracingTimelineModel.js
diff --git a/Source/devtools/front_end/timeline/TracingTimelineModel.js b/Source/devtools/front_end/timeline/TracingTimelineModel.js
index be87ef4653700ad655d5a96f2f5dda22d125b718..979919969d3ec5e1842609c2d97a30052236d654 100644
--- a/Source/devtools/front_end/timeline/TracingTimelineModel.js
+++ b/Source/devtools/front_end/timeline/TracingTimelineModel.js
@@ -101,7 +101,6 @@ WebInspector.TracingTimelineModel.prototype = {
*/
startRecording: function(captureStacks, captureMemory)
{
- this.reset();
var categories;
if (WebInspector.experimentsSettings.timelineTracingMode.isEnabled()) {
categories = WebInspector.TracingTimelineModel.defaultTracingCategoryFilter;
@@ -136,6 +135,7 @@ WebInspector.TracingTimelineModel.prototype = {
*/
_startRecordingWithCategories: function(categories)
{
+ this.reset();
this._tracingModel.start(categories, "", this._didStartRecordingTraceEvents.bind(this));
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698