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 tvcm.exportTo('system_stats', function() {
14 var ObjectSnapshot = tracing.trace_model.ObjectSnapshot;
19 function SystemStatsSnapshot() {
20 ObjectSnapshot.apply(this, arguments);
26 function SystemStatsSnapshot(objectInstance, ts, args) {
27 this.objectInstance = objectInstance;
33 SystemStatsSnapshot.prototype = {
34 __proto__: ObjectSnapshot.prototype,
36 initialize: function() {
37 if (this.args.length == 0)
38 throw new Error('No system stats snapshot data.');
39 this.stats_ = this.args;
42 getStats: function() {
46 setStats: function(stats) {
51 ObjectSnapshot.register('base::TraceEventSystemStatsMonitor::SystemStats',
55 SystemStatsSnapshot: SystemStatsSnapshot