mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
38bd296c8c
- Bug 1145306 - Expose circular buffer status from profiler. r=mstange (8b24a7439) - Bug 1145824 - Add getElapsedTime to nsIProfiler. (r=mstange) (9bbd99f66) - Bug 1145824 - In nsProfiler, allow GetProfile and getProfileData to filter by a start time. (r=mstange) (43bdcb254) - Bug 1141712 - Make LUL work with inplace ticking (not using the unwinder thread). r=mstange. (ed43cdf70) - Bug 1151679 - Stream the property name of getprop and setprop optimization sites. (r=djvj) (3eb8efeb4) - Bug 1142181 - ProfilerBacktrace.cpp should #include its own .h file first, r=aklotz (c1aff9f49) - Bug 1154115 - Rewrite profiler JSON streaming. (r=mstange) (834891a91) - Bug 1157906 - Can't return arrays as a root response, fixes inspect button. r=bgrins (d66407512) - Bug 1160361 - Abort tilt commands when remote. r=bgrins (5bcfbc8d0) - Bug 947242 - DevTools themes - switch to new theme colors;r=jsantell (5ed17dcdc)
34 lines
938 B
C++
34 lines
938 B
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 "ProfilerBacktrace.h"
|
|
|
|
#include "ProfileJSONWriter.h"
|
|
#include "SyncProfile.h"
|
|
|
|
ProfilerBacktrace::ProfilerBacktrace(SyncProfile* aProfile)
|
|
: mProfile(aProfile)
|
|
{
|
|
MOZ_COUNT_CTOR(ProfilerBacktrace);
|
|
MOZ_ASSERT(aProfile);
|
|
}
|
|
|
|
ProfilerBacktrace::~ProfilerBacktrace()
|
|
{
|
|
MOZ_COUNT_DTOR(ProfilerBacktrace);
|
|
if (mProfile->ShouldDestroy()) {
|
|
delete mProfile;
|
|
}
|
|
}
|
|
|
|
void
|
|
ProfilerBacktrace::StreamJSON(SpliceableJSONWriter& aWriter,
|
|
UniqueStacks& aUniqueStacks)
|
|
{
|
|
mozilla::MutexAutoLock lock(*mProfile->GetMutex());
|
|
mProfile->StreamJSON(aWriter, aUniqueStacks);
|
|
}
|