Home | History | Annotate | Download | only in trace_model
      1 // Copyright (c) 2013 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 'use strict';
      6 
      7 base.require('tracing.trace_model.trace_model_event');
      8 
      9 /**
     10  * @fileoverview Provides the Sample class.
     11  */
     12 base.exportTo('tracing.trace_model', function() {
     13   /**
     14    * A Sample represents a sample taken at an instant in time
     15    * plus parameters associated with that sample.
     16    *
     17    * @constructor
     18    */
     19   function Sample(category, title, colorId, start, args) {
     20     tracing.trace_model.TraceModelEvent.apply(this, arguments);
     21   }
     22 
     23   Sample.prototype = {
     24     __proto__: tracing.trace_model.TraceModelEvent.prototype
     25   };
     26 
     27   return {
     28     Sample: Sample
     29   };
     30 });
     31