зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1626918 - Add two missing constructors to TracingMarkerPayload. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D78507
This commit is contained in:
Родитель
3162f50be2
Коммит
1bb1ffcde3
|
@ -195,6 +195,20 @@ class TracingMarkerPayload : public ProfilerMarkerPayload {
|
|||
mCategory(aCategory),
|
||||
mKind(aKind) {}
|
||||
|
||||
TracingMarkerPayload(const char* aCategory, TracingKind aKind,
|
||||
const mozilla::TimeStamp& aTime)
|
||||
|
||||
: ProfilerMarkerPayload(aTime, aTime, mozilla::Nothing(), nullptr),
|
||||
mCategory(aCategory),
|
||||
mKind(aKind) {}
|
||||
|
||||
TracingMarkerPayload(const char* aCategory, const mozilla::TimeStamp& aStart,
|
||||
const mozilla::TimeStamp& aEnd)
|
||||
|
||||
: ProfilerMarkerPayload(aStart, aEnd, mozilla::Nothing(), nullptr),
|
||||
mCategory(aCategory),
|
||||
mKind(TRACING_EVENT) {}
|
||||
|
||||
DECL_STREAM_PAYLOAD
|
||||
|
||||
protected:
|
||||
|
|
Загрузка…
Ссылка в новой задаче