Bug 1224374 - Profiler labels for the top 26-100 chrome hangs;r=BenWa

This commit is contained in:
David Rajchenbach-Teller
2016-01-15 11:38:03 +01:00
parent e82056648c
commit 323ccee44c
24 changed files with 50 additions and 0 deletions

View File

@@ -280,6 +280,7 @@ nsNPAPIPluginInstance::StopTime()
nsresult nsNPAPIPluginInstance::Initialize(nsNPAPIPlugin *aPlugin, nsPluginInstanceOwner* aOwner, const nsACString& aMIMEType)
{
PROFILER_LABEL_FUNC(js::ProfileEntry::Category::OTHER);
PLUGIN_LOG(PLUGIN_LOG_NORMAL, ("nsNPAPIPluginInstance::Initialize this=%p\n",this));
NS_ENSURE_ARG_POINTER(aPlugin);
@@ -655,6 +656,8 @@ nsresult nsNPAPIPluginInstance::HandleEvent(void* event, int16_t* result,
if (RUNNING != mRunning)
return NS_OK;
PROFILER_LABEL_FUNC(js::ProfileEntry::Category::OTHER);
if (!event)
return NS_ERROR_FAILURE;