mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 22:32:51 +00:00
Backed out changeset 3ad8f1ba9de6 (bug 1384688)
This commit is contained in:
parent
5447aa09bb
commit
38fbb8e007
@ -75,11 +75,10 @@ ProfilerChild::RecvResume()
|
||||
}
|
||||
|
||||
static nsCString
|
||||
CollectProfileOrEmptyString(bool aIsShuttingDown)
|
||||
CollectProfileOrEmptyString()
|
||||
{
|
||||
nsCString profileCString;
|
||||
UniquePtr<char[]> profile =
|
||||
profiler_get_profile(/* aSinceTime */ 0, aIsShuttingDown);
|
||||
UniquePtr<char[]> profile = profiler_get_profile();
|
||||
if (profile) {
|
||||
profileCString = nsCString(profile.get(), strlen(profile.get()));
|
||||
} else {
|
||||
@ -91,7 +90,7 @@ CollectProfileOrEmptyString(bool aIsShuttingDown)
|
||||
mozilla::ipc::IPCResult
|
||||
ProfilerChild::RecvGatherProfile(GatherProfileResolver&& aResolve)
|
||||
{
|
||||
aResolve(CollectProfileOrEmptyString(/* aIsShuttingDown */ false));
|
||||
aResolve(CollectProfileOrEmptyString());
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
@ -112,7 +111,7 @@ ProfilerChild::Destroy()
|
||||
nsCString
|
||||
ProfilerChild::GrabShutdownProfile()
|
||||
{
|
||||
return CollectProfileOrEmptyString(/* aIsShuttingDown */ true);
|
||||
return CollectProfileOrEmptyString();
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
|
Loading…
x
Reference in New Issue
Block a user