mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1213719 - Back out bug 1170314 for duplicate functionality. r=smaug
This commit is contained in:
parent
f46ea2b1a6
commit
f47e043eee
@ -41,10 +41,6 @@
|
||||
#include "nsIWebNavigation.h"
|
||||
#include "nsIXPConnect.h"
|
||||
|
||||
#ifdef MOZ_ENABLE_PROFILER_SPS
|
||||
#include "nsIProfiler.h"
|
||||
#endif
|
||||
|
||||
// The maximum allowed number of concurrent timers per page.
|
||||
#define MAX_PAGE_TIMERS 10000
|
||||
|
||||
@ -827,23 +823,6 @@ Console::TimeStamp(JSContext* aCx, const JS::Handle<JS::Value> aData)
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef MOZ_ENABLE_PROFILER_SPS
|
||||
if (aData.isString() && NS_IsMainThread()) {
|
||||
if (!mProfiler) {
|
||||
mProfiler = do_GetService("@mozilla.org/tools/profiler;1");
|
||||
}
|
||||
if (mProfiler) {
|
||||
bool active = false;
|
||||
if (NS_SUCCEEDED(mProfiler->IsActive(&active)) && active) {
|
||||
nsAutoJSString stringValue;
|
||||
if (stringValue.init(aCx, aData)) {
|
||||
mProfiler->AddMarker(NS_ConvertUTF16toUTF8(stringValue).get());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Method(aCx, MethodTimeStamp, NS_LITERAL_STRING("timeStamp"), data);
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,6 @@
|
||||
|
||||
class nsIConsoleAPIStorage;
|
||||
class nsIPrincipal;
|
||||
class nsIProfiler;
|
||||
|
||||
namespace mozilla {
|
||||
namespace dom {
|
||||
@ -205,9 +204,6 @@ private:
|
||||
nsCOMPtr<nsPIDOMWindow> mWindow;
|
||||
nsCOMPtr<nsIConsoleAPIStorage> mStorage;
|
||||
nsRefPtr<JSObjectHolder> mSandbox;
|
||||
#ifdef MOZ_ENABLE_PROFILER_SPS
|
||||
nsCOMPtr<nsIProfiler> mProfiler;
|
||||
#endif
|
||||
|
||||
nsDataHashtable<nsStringHashKey, DOMHighResTimeStamp> mTimerRegistry;
|
||||
nsDataHashtable<nsStringHashKey, uint32_t> mCounterRegistry;
|
||||
|
Loading…
Reference in New Issue
Block a user