OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * This class provides data access interface for dump file profiler. | 6 * This class provides data access interface for dump file profiler. |
7 * @constructor | 7 * @constructor |
8 */ | 8 */ |
9 var Profiler = function(jsonData) { | 9 var Profiler = function(jsonData) { |
10 this.jsonData_ = jsonData; | 10 this.jsonData_ = jsonData; |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 localUnits = localUnits.map(function(unitID) { | 282 localUnits = localUnits.map(function(unitID) { |
283 return parseInt(unitID, 10); | 283 return parseInt(unitID, 10); |
284 }); | 284 }); |
285 | 285 |
286 var retVal = | 286 var retVal = |
287 self.accumulate_(self.template_, snapshot, worldUnits, localUnits); | 287 self.accumulate_(self.template_, snapshot, worldUnits, localUnits); |
288 calModelId(retVal.model, []); | 288 calModelId(retVal.model, []); |
289 return retVal.model; | 289 return retVal.model; |
290 }); | 290 }); |
291 }; | 291 }; |
OLD | NEW |