3 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style license that can be
5 // found in the LICENSE file.
8 <link rel="import" href="/cc/util.html">
13 tv.exportTo('system_stats', function() {
14 var ObjectSnapshot = tracing.trace_model.ObjectSnapshot;
19 function SystemStatsSnapshot(objectInstance, ts, args) {
20 ObjectSnapshot.apply(this, arguments);
21 this.objectInstance = objectInstance;
27 SystemStatsSnapshot.prototype = {
28 __proto__: ObjectSnapshot.prototype,
30 initialize: function() {
31 if (this.args.length == 0)
32 throw new Error('No system stats snapshot data.');
33 this.stats_ = this.args;
36 getStats: function() {
40 setStats: function(stats) {
45 ObjectSnapshot.register('base::TraceEventSystemStatsMonitor::SystemStats',
49 SystemStatsSnapshot: SystemStatsSnapshot