2014-09-09 18:54:08 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
2015-05-20 09:28:00 +00:00
|
|
|
// For Javascript markers, the |stack| of a ProfileTimelineMarker
|
|
|
|
// holds an object of this type. It intentionally looks like a
|
|
|
|
// SavedStack object and is a representation of the frame that is
|
|
|
|
// about to be constructed at the entry point.
|
|
|
|
dictionary ProfileTimelineStackFrame {
|
|
|
|
long line;
|
|
|
|
long column = 0;
|
|
|
|
DOMString source;
|
|
|
|
DOMString functionDisplayName;
|
2015-05-26 17:52:52 +00:00
|
|
|
object? parent = null;
|
|
|
|
object? asyncParent = null;
|
2015-11-05 10:31:00 +00:00
|
|
|
DOMString asyncCause;
|
2015-05-20 09:28:00 +00:00
|
|
|
};
|
|
|
|
|
2014-12-11 15:40:00 +00:00
|
|
|
dictionary ProfileTimelineLayerRect {
|
|
|
|
long x = 0;
|
|
|
|
long y = 0;
|
|
|
|
long width = 0;
|
|
|
|
long height = 0;
|
|
|
|
};
|
|
|
|
|
2016-03-01 08:16:18 +00:00
|
|
|
enum ProfileTimelineMessagePortOperationType {
|
|
|
|
"serializeData",
|
|
|
|
"deserializeData",
|
|
|
|
};
|
|
|
|
|
2015-10-21 21:10:05 +00:00
|
|
|
enum ProfileTimelineWorkerOperationType {
|
|
|
|
"serializeDataOffMainThread",
|
|
|
|
"serializeDataOnMainThread",
|
|
|
|
"deserializeDataOffMainThread",
|
|
|
|
"deserializeDataOnMainThread",
|
|
|
|
};
|
|
|
|
|
2014-09-09 18:54:08 +00:00
|
|
|
dictionary ProfileTimelineMarker {
|
|
|
|
DOMString name = "";
|
2014-10-17 23:02:42 +00:00
|
|
|
DOMHighResTimeStamp start = 0;
|
|
|
|
DOMHighResTimeStamp end = 0;
|
2014-12-29 10:32:00 +00:00
|
|
|
object? stack = null;
|
2015-10-21 21:10:05 +00:00
|
|
|
|
2015-10-24 15:10:22 +00:00
|
|
|
unsigned short processType;
|
|
|
|
boolean isOffMainThread;
|
|
|
|
|
2015-04-29 19:48:57 +00:00
|
|
|
/* For ConsoleTime, Timestamp and Javascript markers. */
|
2014-11-18 13:39:00 +00:00
|
|
|
DOMString causeName;
|
2015-10-21 21:10:05 +00:00
|
|
|
|
2015-04-20 11:03:00 +00:00
|
|
|
/* For ConsoleTime markers. */
|
2014-12-29 10:32:00 +00:00
|
|
|
object? endStack = null;
|
2015-10-21 21:10:05 +00:00
|
|
|
|
2014-11-18 13:39:00 +00:00
|
|
|
/* For DOMEvent markers. */
|
|
|
|
DOMString type;
|
|
|
|
unsigned short eventPhase;
|
2015-10-21 21:10:05 +00:00
|
|
|
|
2015-11-11 22:11:40 +00:00
|
|
|
/* For document::DOMContentLoaded and document::Load markers. Using this
|
|
|
|
* instead of the `start` and `end` timestamps is strongly discouraged. */
|
|
|
|
unsigned long long unixTime; // in microseconds
|
|
|
|
|
2014-12-11 15:40:00 +00:00
|
|
|
/* For Paint markers. */
|
|
|
|
sequence<ProfileTimelineLayerRect> rectangles;
|
2015-10-21 21:10:05 +00:00
|
|
|
|
2015-05-18 23:03:04 +00:00
|
|
|
/* For Style markers. */
|
|
|
|
DOMString restyleHint;
|
2015-10-21 21:10:05 +00:00
|
|
|
|
2016-03-01 08:16:18 +00:00
|
|
|
/* For MessagePort markers. */
|
|
|
|
ProfileTimelineMessagePortOperationType messagePortOperation;
|
|
|
|
|
2015-10-21 21:10:05 +00:00
|
|
|
/* For Worker markers. */
|
|
|
|
ProfileTimelineWorkerOperationType workerOperation;
|
2014-09-09 18:54:08 +00:00
|
|
|
};
|