summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/trace-viewer/src/tracing/trace_model/timed_event.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/trace-viewer/src/tracing/trace_model/timed_event.js')
-rw-r--r--chromium/third_party/trace-viewer/src/tracing/trace_model/timed_event.js50
1 files changed, 0 insertions, 50 deletions
diff --git a/chromium/third_party/trace-viewer/src/tracing/trace_model/timed_event.js b/chromium/third_party/trace-viewer/src/tracing/trace_model/timed_event.js
deleted file mode 100644
index 96fa3f97788..00000000000
--- a/chromium/third_party/trace-viewer/src/tracing/trace_model/timed_event.js
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-'use strict';
-
-base.require('base.guid');
-base.require('tracing.trace_model.event');
-
-/**
- * @fileoverview Provides the TimedEvent class.
- */
-base.exportTo('tracing.trace_model', function() {
- /**
- * A TimedEvent is the base type for any piece of data in the trace model with
- * a specific start and duration.
- *
- * @constructor
- */
- function TimedEvent(start) {
- tracing.trace_model.Event.call(this);
- this.start = start;
- this.duration = 0;
- }
-
- TimedEvent.prototype = {
- __proto__: tracing.trace_model.Event.prototype,
-
- get end() {
- return this.start + this.duration;
- },
-
- addBoundsToRange: function(range) {
- range.addValue(this.start);
- range.addValue(this.end);
- },
-
- bounds: function(that) {
- // Due to inaccuracy of floating-point calculation, the end times of
- // slices from a B/E pair (whose end = start + original_end - start)
- // and an X event (whose end = start + duration) at the same time may
- // become not equal. Tolerate 1ns error.
- return this.start <= that.start && this.end - that.end > -1e-6;
- }
- };
-
- return {
- TimedEvent: TimedEvent
- };
-});