OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 window.pyautoRecordTrace = function(systemTracing, uuid) { | |
nduca
2012/07/20 07:13:13
systemTracing -> systemTracingEnabled, copy the st
| |
6 'use strict'; | |
7 TimelineModelDecorator.recordTrace(function(model) { | |
nduca
2012/07/20 07:13:13
I think this record stuff should be in this file,
| |
8 if( window.timelineModelDecorators == undefined ) | |
9 window.timelineModelDecorators = {}; | |
10 window.timelineModelDecorators[uuid] = model; | |
11 window.domAutomationController.send(uuid); | |
12 }); | |
13 var willSystemTrace = | |
14 tracingController.supportsSystemTracing ? systemTracing : false; | |
15 tracingController.beginTracing(willSystemTrace); | |
16 return willSystemTrace; | |
17 }; | |
18 | |
19 window.domAutomationController.send(''); | |
OLD | NEW |