mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-27 02:21:46 +00:00
32a8a44732
- remaining part of Bug 1146339 - Do anchor scrolling right before dispatching popstate (1123b0133) - Bug 1170488 - Document URI should be updated before sending out onLocationChange. r=smaug (6f553c2ee) - Bug 1144820 - Use nsTArray<UniquePtr<>> to hold timeline markers. r=smaug, r=fitzgen (e4b878ec3) - Bug 1143004 - markers from console.timeStamp() should be rendered in the performance tool's timeline. r=vp (7d8d4cb0c) - Bug 1170671 - ProfileTimelineMarkers that use TRACING_TIMESTAMP should capture stack information. r=smaug (dc7982a30) - Bug 1141614 - Part 1: Maintain a list of docshells whose timeline markers are being observed; r=smaug (2dc04461c) - Bug 1159779 - mozilla::AutoTimelineMarker shouldn't be copy-able; r=smaug (24aadecd4) - Bug 1141614 - Part 2: Add mozilla::AutoGlobalTimelineMarker; r=smaug (c069191a5) - Bug 1141614 - Part 3: Trace cycle collection with AutoGlobalTimelineMarker; r=smaug (2cdccd0fc) - Bug 1160521 - The markers list sidebar should be wider by default, r=jsantell (c479c72c3) - Bug 1150696 - Move all timeline tests that are still relevent into the performance tools tests. r=vp (276572541) - Bug 1165504 - Refactor out marker details view into utilities, make marker definitions more declaritive. r=vp (42218191c) - Bug 1166139 - properly display the generic class name for markers in the marker filter popup. r=vp (711b0032a) - Bug 1157916 - Add tooltip for displaying start/end times on marker details' duration field. r=vp (c586757d5)
45 lines
1.3 KiB
C++
45 lines
1.3 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
/* 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/. */
|
|
|
|
#include "nsDocShell.h"
|
|
#include "TimelineMarker.h"
|
|
|
|
TimelineMarker::TimelineMarker(nsDocShell* aDocShell, const char* aName,
|
|
TracingMetadata aMetaData)
|
|
: mName(aName)
|
|
, mMetaData(aMetaData)
|
|
{
|
|
MOZ_COUNT_CTOR(TimelineMarker);
|
|
MOZ_ASSERT(aName);
|
|
aDocShell->Now(&mTime);
|
|
if (aMetaData == TRACING_INTERVAL_START || aMetaData == TRACING_TIMESTAMP) {
|
|
CaptureStack();
|
|
}
|
|
}
|
|
|
|
TimelineMarker::TimelineMarker(nsDocShell* aDocShell, const char* aName,
|
|
TracingMetadata aMetaData,
|
|
const nsAString& aCause,
|
|
TimelineStackRequest aStackRequest)
|
|
: mName(aName)
|
|
, mMetaData(aMetaData)
|
|
, mCause(aCause)
|
|
{
|
|
MOZ_COUNT_CTOR(TimelineMarker);
|
|
MOZ_ASSERT(aName);
|
|
aDocShell->Now(&mTime);
|
|
if ((aMetaData == TRACING_INTERVAL_START ||
|
|
aMetaData == TRACING_TIMESTAMP) &&
|
|
aStackRequest != NO_STACK) {
|
|
CaptureStack();
|
|
}
|
|
}
|
|
|
|
TimelineMarker::~TimelineMarker()
|
|
{
|
|
MOZ_COUNT_DTOR(TimelineMarker);
|
|
}
|