-
-
Save bill-mccloskey/41130211c988151cbb1bef2735f00953 to your computer and use it in GitHub Desktop.
Runnable analysis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": false, | |
"scrolled": true | |
}, | |
"outputs": [ | |
{ | |
"name": "stderr", | |
"output_type": "stream", | |
"text": [ | |
"/home/hadoop/anaconda2/lib/python2.7/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.\n", | |
" warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')\n" | |
] | |
}, | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"Unable to parse whitelist (/home/hadoop/anaconda2/lib/python2.7/site-packages/moztelemetry/histogram-whitelists.json). Assuming all histograms are acceptable.\n" | |
] | |
} | |
], | |
"source": [ | |
"import ujson as json\n", | |
"import matplotlib.pyplot as plt\n", | |
"import pandas as pd\n", | |
"import numpy as np\n", | |
"import plotly.plotly as py\n", | |
"\n", | |
"from plotly.graph_objs import *\n", | |
"from moztelemetry import get_pings_properties, get_one_ping_per_client\n", | |
"from moztelemetry.dataset import Dataset\n", | |
"\n", | |
"%matplotlib inline" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 2, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"[u'submissionDate',\n", | |
" u'sourceName',\n", | |
" u'sourceVersion',\n", | |
" u'docType',\n", | |
" u'appName',\n", | |
" u'appUpdateChannel',\n", | |
" u'appVersion',\n", | |
" u'appBuildId']" | |
] | |
}, | |
"execution_count": 2, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"Dataset.from_source(\"telemetry\").schema" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 3, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [], | |
"source": [ | |
"pings = Dataset.from_source(\"telemetry\") \\\n", | |
" .where(docType='main') \\\n", | |
" .where(appBuildId=lambda x: x.startswith('20170219') or x.startswith('20170220')) \\\n", | |
" .where(appUpdateChannel=\"nightly\") \\\n", | |
" .records(sc, sample=1.0)" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"... and extract only the attributes we need from the Telemetry submissions:" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 4, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [], | |
"source": [ | |
"subset = get_pings_properties(pings, [\"payload/processes/content/keyedHistograms/MAIN_THREAD_RUNNABLE_MS\"])" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"def count(d):\n", | |
" keyed = d['payload/processes/content/keyedHistograms/MAIN_THREAD_RUNNABLE_MS'] or {}\n", | |
" result = []\n", | |
" for key in keyed:\n", | |
" hist = keyed[key]\n", | |
" values = hist['values']\n", | |
" s = 0\n", | |
" for index in values:\n", | |
" s += values[index]\n", | |
" result.append((key, s))\n", | |
" return result" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 6, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [], | |
"source": [ | |
"freq = subset.flatMap(count).reduceByKey(lambda a, b: a+b).collect()" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 7, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"freq.sort(key=lambda d: d[1], reverse=True)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 8, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"[(u'PCompositorBridge::Msg_DidComposite', 24298),\n", | |
" (u'setTimeout(labeled)', 12796),\n", | |
" (u'PVsync::Msg_Notify', 12042),\n", | |
" (u'setInterval(labeled)', 11911),\n", | |
" (u'AbstractThread::Runner(labeled)', 10056),\n", | |
" (u'anonymous runnable', 9801),\n", | |
" (u'PHttpChannel::Msg_OnTransportAndData(labeled)', 2537),\n", | |
" (u'non-nsINamed runnable', 2508),\n", | |
" (u'nsInputStreamReadyEvent', 2270),\n", | |
" (u'AsyncEventDispatcher(labeled)', 2241),\n", | |
" (u'PBrowser::Msg_RealMouseMoveEvent(labeled)', 2044),\n", | |
" (u'CCTimerFired(labeled)', 2018),\n", | |
" (u'LayerActivityTracker', 1396),\n", | |
" (u'AsyncFreeSnowWhite', 1216),\n", | |
" (u'PJavaScript::Msg_Get', 1184),\n", | |
" (u'Anonymous_interface_timer', 1126),\n", | |
" (u'PostMessageEvent(labeled)', 1036),\n", | |
" (u'ProxyReleaseEvent', 1015),\n", | |
" (u'PHttpChannel::Msg_OnProgress(labeled)', 938),\n", | |
" (u'LogMessageRunnable(labeled)', 850),\n", | |
" (u'MediaStreamGraphStableStateRunnable', 774),\n", | |
" (u'HTMLMediaElement::DispatchAsyncEvent(labeled)', 690),\n", | |
" (u'PTexture::Msg___delete__', 671),\n", | |
" (u'TelemetryIPCAccumulator::IPCTimerFired', 616),\n", | |
" (u'PHttpChannel::Msg_SetPriority(labeled)', 439),\n", | |
" (u'ChannelMediaResource::DoNotifyDataReceived', 384),\n", | |
" (u'PHttpChannel::Msg_DeleteSelf(labeled)', 373),\n", | |
" (u'PHttpChannel::Msg_OnStopRequest(labeled)', 361),\n", | |
" (u'PHttpChannel::Msg_OnStartRequest(labeled)', 361),\n", | |
" (u'Anonymous_observer_timer', 357),\n", | |
" (u'SHMEM_DESTROYED_MESSAGE', 326),\n", | |
" (u'PAPZ::Msg_RequestContentRepaint', 316),\n", | |
" (u'ProgressTracker::AsyncNotifyRunnable', 307),\n", | |
" (u'nsIDocument::SelectorCache', 284),\n", | |
" (u'PHttpChannel::Msg_OnStatus(labeled)', 280),\n", | |
" (u'PPluginInstance::Msg_ShowDirectBitmap(labeled)', 268),\n", | |
" (u'DummyEvent', 266),\n", | |
" (u'StorageNotifierRunnable', 258),\n", | |
" (u'PContent::Msg_NotifyVisited', 247),\n", | |
" (u'PJavaScript::Msg_DropObject', 240),\n", | |
" (u'ProxyReleaseEvent(labeled)', 230),\n", | |
" (u'XMLHttpRequest(labeled)', 213),\n", | |
" (u'PJavaScript::Msg_DropTemporaryStrongReferences', 207),\n", | |
" (u'Anonymous_callback_timer', 186),\n", | |
" (u'IDecodingTask::NotifyDecodeComplete', 183),\n", | |
" (u'PContent::Msg_AsyncMessage', 183),\n", | |
" (u'PJavaScript::Msg_CallOrConstruct', 180),\n", | |
" (u'Canceled_timer(labeled)', 153),\n", | |
" (u'HTMLMediaElement::ProgressTimerCallback', 137),\n", | |
" (u'AsyncEventDispatcher', 134),\n", | |
" (u'AbstractThread::Runner', 126),\n", | |
" (u'nsBrowserStatusFilter::TimeoutHandler', 114),\n", | |
" (u'PresShell::UpdateApproximateFrameVisibility', 109),\n", | |
" (u'PContent::Msg_PreferenceUpdate', 106),\n", | |
" (u'nsHtml5ExecutorFlusher(labeled)', 105),\n", | |
" (u'PBrowser::Msg_SynthMouseMoveEvent(labeled)', 103),\n", | |
" (u'PBrowser::Msg_AsyncMessage(labeled)', 99),\n", | |
" (u'PBrowser::Msg_MouseWheelEvent(labeled)', 96),\n", | |
" (u'ICCTimerFired(labeled)', 93),\n", | |
" (u'PVRManager::Msg_NotifyVRVSync', 92),\n", | |
" (u'nsHtml5ExecutorReflusher(labeled)', 90),\n", | |
" (u'non-nsINamed ThrottledEventQueue runnable', 83),\n", | |
" (u'Canceled_timer', 78),\n", | |
" (u'nsUnblockOnloadEvent(labeled)', 76),\n", | |
" (u'PBrowser::Msg_RealKeyEvent(labeled)', 76),\n", | |
" (u'InterSliceGCTimerFired(labeled)', 71),\n", | |
" (u'PVRManager::Msg_NotifyVSync', 70),\n", | |
" (u'PHttpChannel::Msg_NotifyTrackingResource(labeled)', 69),\n", | |
" (u'nsPresContextType::RunWillPaintObservers', 64),\n", | |
" (u'PPluginInstance::Msg_ShowDirectDXGISurface(labeled)', 63),\n", | |
" (u'IMENotificationSender', 63),\n", | |
" (u'PWebSocket::Msg_OnMessageAvailable', 63),\n", | |
" (u'PCompositorBridge::Msg_ParentAsyncMessages', 62),\n", | |
" (u'non-nsINamed ThrottledEventQueue runnable(labeled)', 62),\n", | |
" (u'PHttpChannel::Msg_SetPriority', 57),\n", | |
" (u'nsIDocument::HandleRebuildUserFontSet(labeled)', 57),\n", | |
" (u'PContent::Msg_DataStoragePut', 55),\n", | |
" (u'PJavaScript::Msg_InstanceOf', 55),\n", | |
" (u'WindowDestroyedEvent(labeled)', 52),\n", | |
" (u'PPluginScriptableObject::Msg_NPN_Evaluate(labeled)', 49),\n", | |
" (u'BlurCache', 47),\n", | |
" (u'nsDocument::DoNotifyPossibleTitleChange(labeled)', 46),\n", | |
" (u'IDecodingTask::NotifyProgress', 43),\n", | |
" (u'nsCaret::CaretBlinkCallback_timer', 41),\n", | |
" (u'WorkerRunnable', 37),\n", | |
" (u'ProgressTracker::OnDiscard', 37),\n", | |
" (u'PBrowser::Msg_RealMouseButtonEvent(labeled)', 36),\n", | |
" (u'imgRequestProxy::DoRemoveFromLoadGroup', 36),\n", | |
" (u'ShortTermURISpecCache', 33),\n", | |
" (u'UITimerCallback_timer', 30),\n", | |
" (u'PAPZ::Msg_NotifyAPZStateChange', 26),\n", | |
" (u'NotifyOffThreadScriptLoadCompletedRunnable(labeled)', 25),\n", | |
" (u'IncrementalFinalizeRunnable', 25),\n", | |
" (u'nsBindingManager::DoProcessAttachedQueue', 24),\n", | |
" (u'nsDocument::UpdateVisibilityState(labeled)', 23),\n", | |
" (u'PPluginInstance::Msg_Show(labeled)', 23),\n", | |
" (u'nsAsyncVerifyRedirectCallbackEvent', 23),\n", | |
" (u'ContentUnbinder', 22),\n", | |
" (u'nsDocument::NotifyStyleSheetApplicableStateChanged(labeled)', 21),\n", | |
" (u'PStorage::Msg_LoadItem', 21),\n", | |
" (u'nsDocument::DispatchContentLoadedEvents(labeled)', 21),\n", | |
" (u'nsThreadShutdownAckEvent', 21),\n", | |
" (u'nsResolveOrRejectPendingPlayPromisesRunner(labeled)', 21),\n", | |
" (u'nsDocumentShownDispatcher', 20),\n", | |
" (u'nsHtml5SVGLoadDispatcher(labeled)', 18),\n", | |
" (u'PBrowser::Msg_UpdateDimensions(labeled)', 18),\n", | |
" (u'MessagePortMessage(labeled)', 17),\n", | |
" (u'PWebSocket::Msg_OnAcknowledge', 16),\n", | |
" (u'PContent::Msg_ParentActivated', 15),\n", | |
" (u'GradientCache', 15),\n", | |
" (u'DebuggerOnGCRunnable', 15),\n", | |
" (u'PJavaScript::Msg_DOMInstanceOf', 14),\n", | |
" (u'nsDocument::DoNotifyPossibleTitleChange', 14),\n", | |
" (u'NotifyChannelActiveRunnable', 14),\n", | |
" (u'ScrollFrameActivityTracker', 14),\n", | |
" (u'ImageCache', 14),\n", | |
" (u'PHttpChannel::Msg_Redirect1Begin(labeled)', 14),\n", | |
" (u'PHttpChannel::Msg_Redirect3Complete(labeled)', 13),\n", | |
" (u'FlushTimerCallback', 13),\n", | |
" (u'PendingAlertsCollector_timer', 13),\n", | |
" (u'imgCacheExpirationTracker', 12),\n", | |
" (u'PostMessageEvent', 12),\n", | |
" (u'ScriptLoader(labeled)', 12),\n", | |
" (u'nsIThread::AsyncShutdown', 11),\n", | |
" (u'PVRManager::Msg_GamepadUpdate', 11),\n", | |
" (u'nsPresContext::HandleMediaFeatureValuesChangedEvent', 11),\n", | |
" (u'PresShell::FireResizeEvent', 10),\n", | |
" (u'PBrowser::Msg_LoadRemoteScript(labeled)', 10),\n", | |
" (u'GCTimerFired(labeled)', 10),\n", | |
" (u'PresShell::sPaintSuppressionCallback', 9),\n", | |
" (u'PWebSocket::Msg_OnBinaryMessageAvailable', 9),\n", | |
" (u'nsPresContext::HandleRebuildCounterStyles', 8),\n", | |
" (u'PJavaScript::Msg_Has', 8),\n", | |
" (u'PBackgroundIDBCursor::Msg_Response', 8),\n", | |
" (u'WorkerRunnable(labeled)', 7),\n", | |
" (u'PHttpChannel::Msg_OnTransportAndData', 7),\n", | |
" (u'PBrowserStream::Msg_StreamDestroyed(labeled)', 7),\n", | |
" (u'PBrowser::Msg_SetDocShellIsActive(labeled)', 6),\n", | |
" (u'PJavaScript::Msg_GetPropertyDescriptor', 6),\n", | |
" (u'PBackgroundIDBRequest::Msg___delete__', 6),\n", | |
" (u'PHal::Msg_NotifyWakeLockChange', 5),\n", | |
" (u'nsIDocument::HandleRebuildUserFontSet', 5),\n", | |
" (u'PuppetWidget::PaintTask', 5),\n", | |
" (u'PJavaScript::Msg_Set', 5),\n", | |
" (u'PPluginInstance::Msg_PStreamNotifyConstructor(labeled)', 5),\n", | |
" (u'PContent::Msg_PBlobConstructor', 5),\n", | |
" (u'PBrowser::Msg_SuppressDisplayport(labeled)', 5),\n", | |
" (u'RuleProcessorCache::ExpirationTracker', 5),\n", | |
" (u'PHttpChannel::Msg_DeleteSelf', 4),\n", | |
" (u'nsHtml5SVGLoadDispatcher', 4),\n", | |
" (u'nsDocument::DispatchContentLoadedEvents', 4),\n", | |
" (u'gfxFontCache', 4),\n", | |
" (u'SurfaceTracker', 4),\n", | |
" (u'PContent::Msg_Activate', 4),\n", | |
" (u'PContent::Msg_Deactivate', 4),\n", | |
" (u'imgCancelRunnable', 4),\n", | |
" (u'PHttpChannel::Msg_OnStopRequest', 3),\n", | |
" (u'PHttpChannel::Msg_OnStartRequest', 3),\n", | |
" (u'TileExpiry', 3),\n", | |
" (u'PContent::Msg_BlobURLUnregistration', 3),\n", | |
" (u'nsHTMLDNSPrefetch::nsDeferrals::Tick', 3),\n", | |
" (u'PContent::Msg_DataStorageRemove', 3),\n", | |
" (u'ProgressTracker::SyncNotifyProgress', 3),\n", | |
" (u'DecoderDoctorDocumentWatcher_timer', 3),\n", | |
" (u'PBackgroundIDBTransaction::Msg_Complete', 3),\n", | |
" (u'FullGCTimerFired(labeled)', 3),\n", | |
" (u'PBackgroundIDBTransaction::Msg___delete__', 3),\n", | |
" (u'WindowDestroyedEvent', 3),\n", | |
" (u'PBrowser::Msg_StopIMEStateManagement(labeled)', 3),\n", | |
" (u'PBrowser::Msg_RealDragEvent(labeled)', 3),\n", | |
" (u'PWebSocket::Msg_OnStop', 2),\n", | |
" (u'PWebSocket::Msg___delete__', 2),\n", | |
" (u'FontFaceSet::CheckLoadingFinishedAfterDelay', 2),\n", | |
" (u'CheckPluginStopEvent', 2),\n", | |
" (u'StorageCacheHolder_timer', 2),\n", | |
" (u'PContent::Msg_BlobURLRegistration', 2),\n", | |
" (u'PHttpChannel::Msg_OnStatus', 2),\n", | |
" (u'PBrowser::Msg_RealTouchMoveEvent(labeled)', 2),\n", | |
" (u'PBlob::Msg___delete__', 2),\n", | |
" (u'ThrottledEventQueue::Inner::ShutdownComplete', 2),\n", | |
" (u'(labeled)', 2),\n", | |
" (u'PDocAccessible::Msg___delete__(labeled)', 2),\n", | |
" (u'PPluginInstance::Msg_NPN_SetValue_NPPVpluginIsPlayingAudio(labeled)', 2),\n", | |
" (u'PStorage::Msg_LoadDone', 2),\n", | |
" (u'PContent::Msg_LoadAndRegisterSheet', 2),\n", | |
" (u'PContent::Msg_LoadProcessScript', 1),\n", | |
" (u'nsWindowMemoryReporter::AsyncCheckForGhostWindows_timer', 1),\n", | |
" (u'nsDocument::NotifyStyleSheetApplicableStateChanged', 1),\n", | |
" (u'PContent::Msg_DispatchLocalStorageChange', 1),\n", | |
" (u'ShrinkingGCTimerFired(labeled)', 1),\n", | |
" (u'PBrowser::Msg_SizeModeChanged(labeled)', 1),\n", | |
" (u'TransactionIdAllocator::NotifyTransactionCompleted', 1),\n", | |
" (u'PCacheOp::Msg___delete__', 1),\n", | |
" (u'PBrowser::Msg_MenuKeyboardListenerInstalled(labeled)', 1),\n", | |
" (u'PLayerTransaction::Msg___delete__', 1),\n", | |
" (u'CategoryNotificationRunnable', 1),\n", | |
" (u'PBrowser::Msg_SetUseGlobalHistory(labeled)', 1),\n", | |
" (u'PBrowser::Msg_Show(labeled)', 1),\n", | |
" (u'CharSetChangingRunnable', 1),\n", | |
" (u'PBrowser::Msg_Destroy(labeled)', 1),\n", | |
" (u'TabChild::DelayedDeleteRunnable', 1),\n", | |
" (u'PContent::Msg_UnregisterSheet', 1),\n", | |
" (u'PBrowser::Msg_UpdateNativeWindowHandle(labeled)', 1),\n", | |
" (u'PAPZ::Msg_Destroy', 1),\n", | |
" (u'PBrowser::Msg_UIResolutionChanged(labeled)', 1),\n", | |
" (u'WorkerThreadPrimaryRunnable::FinishedRunnable', 0),\n", | |
" (u'PBrowser::Msg_PRenderFrameConstructor(labeled)', 0),\n", | |
" (u'PBrowser::Msg_InitRendering(labeled)', 0),\n", | |
" (u'PContent::Msg_PBrowserConstructor(labeled)', 0),\n", | |
" (u'ScrollbarActivity::FadeBeginTimerFired', 0),\n", | |
" (u'PMessagePort::Msg_ReceiveData', 0),\n", | |
" (u'HTMLMediaElement::VideoDecodeSuspendTimerCallback', 0),\n", | |
" (u'PHttpChannel::Msg_Redirect1Begin', 0),\n", | |
" (u'PHttpChannel::Msg_Redirect3Complete', 0),\n", | |
" (u'PStorage::Msg_LoadUsage', 0),\n", | |
" (u'PBackground::Msg_PCacheStreamControlConstructor', 0),\n", | |
" (u'PBackground::Msg_PFileDescriptorSetConstructor', 0),\n", | |
" (u'PCacheStreamControl::Msg___delete__', 0),\n", | |
" (u'PHttpChannel::Msg_ReportSecurityMessage(labeled)', 0),\n", | |
" (u'nsDelayedEventDispatcher(labeled)', 0),\n", | |
" (u'PHttpChannel::Msg_OnProgress', 0),\n", | |
" (u'PTCPSocket::Msg_Callback', 0),\n", | |
" (u'PCacheStorage::Msg___delete__', 0),\n", | |
" (u'PContent::Msg_DataStorageClear', 0),\n", | |
" (u'PBackground::Msg_PCacheConstructor', 0),\n", | |
" (u'nsDocument::IntersectionObserverNotification(labeled)', 0),\n", | |
" (u'PCache::Msg___delete__', 0),\n", | |
" (u'PTCPSocket::Msg_UpdateBufferedAmount', 0),\n", | |
" (u'PVsync::Msg_VsyncRate', 0),\n", | |
" (u'XMLHttpRequest', 0),\n", | |
" (u'PContent::Msg_GMPsChanged', 0),\n", | |
" (u'POfflineCacheUpdate::Msg_NotifyStateEvent', 0),\n", | |
" (u'Empty_microtask_runnable', 0),\n", | |
" (u'PBrowser::Msg_CompositionEvent(labeled)', 0),\n", | |
" (u'PWebSocket::Msg_OnStart', 0),\n", | |
" (u'PHttpChannel::Msg_NotifyTrackingProtectionDisabled(labeled)', 0),\n", | |
" (u'CompositableForwarder', 0),\n", | |
" (u'PPluginInstance::Msg_SetNetscapeWindowAsParent(labeled)', 0),\n", | |
" (u'PContent::Msg_RegisterChromeItem', 0),\n", | |
" (u'HashchangeCallback(labeled)', 0),\n", | |
" (u'PWebSocket::Msg_OnServerClose', 0),\n", | |
" (u'PDocAccessible::Msg_ParentCOMProxy(labeled)', 0),\n", | |
" (u'PContent::Msg_RegisterChrome', 0),\n", | |
" (u'PBrowser::Msg_LoadURL(labeled)', 0),\n", | |
" (u'PContent::Msg_SetXPCOMProcessAttributes', 0),\n", | |
" (u'PContent::Msg_InitRendering', 0),\n", | |
" (u'PContent::Msg_InitServiceWorkers', 0),\n", | |
" (u'PContent::Msg_RemoteType', 0),\n", | |
" (u'PContent::Msg_AppInfo', 0),\n", | |
" (u'PContent::Msg_InitBlobURLs', 0),\n", | |
" (u'PContent::Msg_SetProcessSandbox', 0),\n", | |
" (u'PContent::Msg_InitProcessHangMonitor', 0),\n", | |
" (u'PStreamNotify::Msg_RedirectNotifyResponse(labeled)', 0),\n", | |
" (u'PPluginInstance::Msg_NPN_GetValue_SupportsAsyncBitmapSurface(labeled)', 0),\n", | |
" (u'PStorage::Msg_OriginsHavingData', 0),\n", | |
" (u'PContent::Msg_SetAudioSessionData', 0),\n", | |
" (u'PHttpChannel::Msg_NotifyTrackingResource', 0),\n", | |
" (u'PCompositorBridge::Msg_InvalidateLayers', 0),\n", | |
" (u'FinalizationEvent', 0),\n", | |
" (u'PPluginScriptableObject::Msg_Invoke(labeled)', 0),\n", | |
" (u'PMessagePort::Msg_Entangled', 0),\n", | |
" (u'PJavaScript::Msg_Delete', 0),\n", | |
" (u'PMessagePort::Msg___delete__', 0),\n", | |
" (u'PBackgroundIDBFactoryRequest::Msg___delete__', 0),\n", | |
" (u'PStorage::Msg_Observe', 0),\n", | |
" (u'PrefChangedUpdateTimerCallback', 0),\n", | |
" (u'PPluginInstance::Msg_NPN_GetValue_NPNVnetscapeWindow(labeled)', 0),\n", | |
" (u'PBackgroundIDBFactory::Msg_PBackgroundIDBDatabaseConstructor', 0),\n", | |
" (u'PBackgroundIDBCursor::Msg___delete__', 0),\n", | |
" (u'PBrowser::Msg_SetKeyboardIndicators(labeled)', 0),\n", | |
" (u'PBackgroundIDBDatabase::Msg___delete__', 0),\n", | |
" (u'PBlobStream::Msg___delete__', 0),\n", | |
" (u'PPluginInstance::Msg_PluginFocusChange(labeled)', 0),\n", | |
" (u'PBrowser::Msg_RealTouchEvent(labeled)', 0),\n", | |
" (u'PGamepadEventChannel::Msg_GamepadUpdate', 0),\n", | |
" (u'PBackgroundIDBFactory::Msg___delete__', 0),\n", | |
" (u'PDNSRequest::Msg_LookupCompleted', 0),\n", | |
" (u'PPluginInstance::Msg_NPN_ConvertPoint(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_State(labeled)', 0),\n", | |
" (u'HistoryTracker', 0),\n", | |
" (u'PStreamNotify::Msg_RedirectNotifyResponse', 0),\n", | |
" (u'PBlob::Msg_CreatedFromKnownBlob', 0),\n", | |
" (u'PDocAccessible::Msg_Attributes(labeled)', 0),\n", | |
" (u'PAPZ::Msg_SetScrollingRootContent', 0),\n", | |
" (u'PHttpChannel::Msg_AssociateApplicationCache(labeled)', 0),\n", | |
" (u'SHMEM_CREATED_MESSAGE', 0),\n", | |
" (u'nsContentSink_timer', 0),\n", | |
" (u'PHal::Msg_NotifySensorChange', 0),\n", | |
" (u'PBackground::Msg_PBlobConstructor', 0),\n", | |
" (u'PContent::Msg_AddPermission', 0),\n", | |
" (u'PPluginInstance::Msg_NPN_PushPopupsEnabledState(labeled)', 0),\n", | |
" (u'PPluginInstance::Msg_NPN_PopPopupsEnabledState(labeled)', 0),\n", | |
" (u'PContent::Msg_SetConnectivity', 0),\n", | |
" (u'nsCallRequestFullScreen(labeled)', 0),\n", | |
" (u'HTMLMediaElement::DispatchAsyncEvent', 0),\n", | |
" (u'PContent::Msg_EndDragSession', 0),\n", | |
" (u'PExternalHelperApp::Msg___delete__', 0),\n", | |
" (u'PContent::Msg_NotifyAlertsObserver', 0),\n", | |
" (u'PContent::Msg_GeolocationUpdate', 0),\n", | |
" (u'PChannelDiverter::Msg___delete__', 0),\n", | |
" (u'PHttpChannel::Msg_DivertMessages(labeled)', 0),\n", | |
" (u'PHttpChannel::Msg_FlushedForDiversion(labeled)', 0),\n", | |
" (u'PJavaScript::Msg_GetBuiltinClass', 0),\n", | |
" (u'PContent::Msg_ClearImageCache', 0),\n", | |
" (u'PFTPChannel::Msg_OnDataAvailable', 0),\n", | |
" (u'nsGlobalWindow::UnblockScriptedClosing(labeled)', 0),\n", | |
" (u'PVRManager::Msg_UpdateDisplayInfo', 0),\n", | |
" (u'PPluginInstance::Msg_RevokeCurrentDirectSurface(labeled)', 0),\n", | |
" (u'PHttpChannel::Msg_FinishInterceptedRedirect(labeled)', 0),\n", | |
" (u'PBrowser::Msg_ThemeChanged(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_CharacterCount(labeled)', 0),\n", | |
" (u'PBrowserStream::Msg_NPN_DestroyStream(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_Name(labeled)', 0),\n", | |
" (u'PHttpChannel::Msg_FailedAsyncOpen(labeled)', 0),\n", | |
" (u'PContent::Msg_ActivateA11y', 0),\n", | |
" (u'PPluginInstance::Msg_NPN_SetValue_NPPVpluginDrawingModel(labeled)', 0),\n", | |
" (u'PSendStream::Msg___delete__', 0),\n", | |
" (u'PContent::Msg_UpdateWindow', 0),\n", | |
" (u'PAsmJSCacheEntry::Msg___delete__', 0),\n", | |
" (u'PAsmJSCacheEntry::Msg_OnOpenCacheFile', 0),\n", | |
" (u'PContent::Msg_LastPrivateDocShellDestroyed', 0),\n", | |
" (u'PJavaScript::Msg_IsArray', 0),\n", | |
" (u'POfflineCacheUpdate::Msg_Finish', 0),\n", | |
" (u'PSpeechSynthesis::Msg_VoiceAdded', 0),\n", | |
" (u'PBrowser::Msg_HandleTap(labeled)', 0),\n", | |
" (u'PMedia::Msg_GetPrincipalKeyResponse', 0),\n", | |
" (u'PAsmJSCacheEntry::Msg_OnOpenMetadataForRead', 0),\n", | |
" (u'PContentPermissionRequest::Msg___delete__', 0),\n", | |
" (u'<unknown IPC msg name>', 0),\n", | |
" (u'PDocAccessible::Msg_TextSubstring(labeled)', 0),\n", | |
" (u'PPluginInstance::Msg_PPluginSurfaceConstructor(labeled)', 0),\n", | |
" (u'PFilePicker::Msg___delete__(labeled)', 0),\n", | |
" (u'PServiceWorkerManager::Msg_NotifyRegister', 0),\n", | |
" (u'PContentPermissionRequest::Msg_NotifyResult', 0),\n", | |
" (u'PDocAccessible::Msg_Relations(labeled)', 0),\n", | |
" (u'POfflineCacheUpdate::Msg_AssociateDocuments', 0),\n", | |
" (u'PContent::Msg_NotifyPushSubscriptionModifiedObservers', 0),\n", | |
" (u'PTCPSocket::Msg___delete__', 0),\n", | |
" (u'PContent::Msg_NotifyEmptyHTTPCache', 0),\n", | |
" (u'PContent::Msg_InvokeDragSession', 0),\n", | |
" (u'PBackgroundIDBDatabase::Msg_PBackgroundIDBVersionChangeTransactionConstructor',\n", | |
" 0),\n", | |
" (u'PBackgroundIDBVersionChangeTransaction::Msg_Complete', 0),\n", | |
" (u'PBrowser::Msg_NavigateByKey(labeled)', 0),\n", | |
" (u'PBackgroundIDBVersionChangeTransaction::Msg___delete__', 0),\n", | |
" (u'PBrowser::Msg_SwappedWithOtherRemoteLoader(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_Extents(labeled)', 0),\n", | |
" (u'PContent::Msg_FileCreationResponse', 0),\n", | |
" (u'PContent::Msg_BidiKeyboardNotify', 0),\n", | |
" (u'PJavaScript::Msg_DefineProperty', 0),\n", | |
" (u'PBroadcastChannel::Msg___delete__', 0),\n", | |
" (u'PJavaScript::Msg_GetPrototype', 0),\n", | |
" (u'PHttpChannel::Msg_IssueDeprecationWarning(labeled)', 0),\n", | |
" (u'PRemotePrintJob::Msg_PageProcessed', 0),\n", | |
" (u'PPluginInstance::Msg_NPN_GetValue_PreferredDXGIAdapter(labeled)', 0),\n", | |
" (u'PContent::Msg_PushWithData', 0),\n", | |
" (u'PWebBrowserPersistDocument::Msg___delete__', 0),\n", | |
" (u'TelemetryIPCAccumulator::ArmIPCTimer', 0),\n", | |
" (u'PContent::Msg_SetOffline', 0),\n", | |
" (u'PWebSocketEventListener::Msg_FrameReceived', 0),\n", | |
" (u'PPluginSurface::Msg___delete__(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_GetTextAtOffset(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_Description(labeled)', 0),\n", | |
" (u'PServiceWorkerManager::Msg_NotifyUnregister', 0),\n", | |
" (u'PContent::Msg_PWebBrowserPersistDocumentConstructor', 0),\n", | |
" (u'PJavaScript::Msg_GetOwnPropertyDescriptor', 0),\n", | |
" (u'PGamepadEventChannel::Msg___delete__', 0),\n", | |
" (u'PJavaScript::Msg_IsExtensible', 0),\n", | |
" (u'PFileDescriptorSet::Msg___delete__', 0),\n", | |
" (u'PDocAccessible::Msg_TextBounds(labeled)', 0),\n", | |
" (u'PContent::Msg_UpdateDictionaryList', 0),\n", | |
" (u'PDocAccessible::Msg_LinkIndexAtOffset(labeled)', 0),\n", | |
" (u'PContent::Msg_SetCaptivePortalState', 0),\n", | |
" (u'PCompositorBridge::Msg_ReleaseSharedCompositorFrameMetrics', 0),\n", | |
" (u'PPrintSettingsDialog::Msg___delete__', 0),\n", | |
" (u'PDocAccessible::Msg_StartOffset(labeled)', 0),\n", | |
" (u'PCompositorBridge::Msg_SharedCompositorFrameMetrics', 0),\n", | |
" (u'PDocAccessible::Msg_CurValue(labeled)', 0),\n", | |
" (u'PJavaScript::Msg_GetPrototypeIfOrdinary', 0),\n", | |
" (u'PServiceWorkerManager::Msg_NotifyRemoveAll', 0),\n", | |
" (u'PDocAccessible::Msg_CaretOffset(labeled)', 0),\n", | |
" (u'PJavaScript::Msg_GetPropertyKeys', 0),\n", | |
" (u'PWebBrowserPersistDocument::Msg_SetPersistFlags', 0),\n", | |
" (u'PSpeechSynthesis::Msg_NotifyVoicesChanged', 0),\n", | |
" (u'PWebBrowserPersistDocument::Msg_PWebBrowserPersistResourcesConstructor',\n", | |
" 0),\n", | |
" (u'PWebBrowserPersistDocument::Msg_PWebBrowserPersistSerializeConstructor',\n", | |
" 0),\n", | |
" (u'PPluginInstance::Msg_NPN_GetValue_SupportsAsyncDXGISurface(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_URLDocTypeMimeType(labeled)', 0),\n", | |
" (u'PWyciwygChannel::Msg_OnStartRequest', 0),\n", | |
" (u'PWyciwygChannel::Msg_OnStopRequest', 0),\n", | |
" (u'PPrinting::Msg_PRemotePrintJobConstructor', 0),\n", | |
" (u'PJavaScript::Msg_ClassName', 0),\n", | |
" (u'PWyciwygChannel::Msg_OnDataAvailable', 0),\n", | |
" (u'PVRLayer::Msg___delete__', 0),\n", | |
" (u'PCompositorBridge::Msg_CompositorUpdated', 0),\n", | |
" (u'PRemotePrintJob::Msg_PrintInitializationResult', 0),\n", | |
" (u'PRemotePrintJob::Msg___delete__', 0),\n", | |
" (u'PPluginInstance::Msg_InitDXGISurface(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_SelectionCount(labeled)', 0),\n", | |
" (u'PSpeechSynthesis::Msg_IsSpeakingChanged', 0),\n", | |
" (u'PPrintProgressDialog::Msg_DialogOpened', 0),\n", | |
" (u'PBroadcastChannel::Msg_Notify', 0),\n", | |
" (u'PContent::Msg_Shutdown', 0),\n", | |
" (u'PPluginInstance::Msg_FinalizeDXGISurface(labeled)', 0),\n", | |
" (u'PContent::Msg_InitGMPService', 0),\n", | |
" (u'PHttpChannel::Msg_ReportSecurityMessage', 0),\n", | |
" (u'PContent::Msg_VarUpdate', 0),\n", | |
" (u'PPluginScriptableObject::Msg___delete__', 0),\n", | |
" (u'PPluginSurface::Msg___delete__', 0),\n", | |
" (u'PMessagePort::Msg_StopSendingDataConfirmed', 0),\n", | |
" (u'PJavaScript::Msg_HasInstance', 0),\n", | |
" (u'PWebSocketEventListener::Msg_FrameSent', 0),\n", | |
" (u'PSpeechSynthesisRequest::Msg_OnPause', 0),\n", | |
" (u'PointerLockRequest(labeled)', 0),\n", | |
" (u'PSpeechSynthesisRequest::Msg_OnResume', 0),\n", | |
" (u'PFTPChannel::Msg_OnStartRequest', 0),\n", | |
" (u'PContent::Msg_FlushMemory', 0),\n", | |
" (u'PAPZ::Msg_NotifyAsyncScrollbarDragRejected', 0),\n", | |
" (u'PFTPChannel::Msg_OnStopRequest', 0),\n", | |
" (u'PColorPicker::Msg_Update(labeled)', 0),\n", | |
" (u'PBrowser::Msg_SelectionEvent(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_ActionCount(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_ActionNameAt(labeled)', 0),\n", | |
" (u'PBackgroundIDBDatabase::Msg_VersionChange', 0),\n", | |
" (u'PServiceWorkerManager::Msg_NotifyRemove', 0),\n", | |
" (u'MessagePortMessage', 0),\n", | |
" (u'PContent::Msg_Push', 0),\n", | |
" (u'PContent::Msg_StartProfiler', 0),\n", | |
" (u'PContent::Msg_ReinitRendering', 0),\n", | |
" (u'PBackgroundIDBRequest::Msg_Preprocess', 0),\n", | |
" (u'PPluginInstance::Msg_NPN_GetURL(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_AnchorURIAt(labeled)', 0),\n", | |
" (u'PStorage::Msg_Error', 0),\n", | |
" (u'PExternalHelperApp::Msg_Cancel', 0),\n", | |
" (u'PBackgroundIDBFactoryRequest::Msg_Blocked', 0),\n", | |
" (u'PPluginScriptableObject::Msg_GetParentProperty(labeled)', 0),\n", | |
" (u'PContent::Msg_PushSubscriptionChange', 0),\n", | |
" (u'PDocAccessible::Msg_LinkCount(labeled)', 0),\n", | |
" (u'PBrowser::Msg_HandledWindowedPluginKeyEvent(labeled)', 0),\n", | |
" (u'PPluginInstance::Msg_OnWindowedPluginKeyEvent(labeled)', 0),\n", | |
" (u'PPluginInstance::Msg_NPN_GetValue_NPNVdocumentOrigin(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_TableCellAt(labeled)', 0),\n", | |
" (u'PSpeechSynthesis::Msg_SetDefaultVoice', 0),\n", | |
" (u'PContent::Msg_StopProfiler', 0),\n", | |
" (u'PDocAccessible::Msg_SelectionBoundsAt(labeled)', 0),\n", | |
" (u'PFTPChannel::Msg_DivertMessages', 0),\n", | |
" (u'PFTPChannel::Msg_FlushedForDiversion', 0),\n", | |
" (u'PFTPChannel::Msg_DeleteSelf', 0),\n", | |
" (u'PDocAccessible::Msg_MinValue(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_MaxValue(labeled)', 0),\n", | |
" (u'PContent::Msg_MinimizeMemoryUsage', 0),\n", | |
" (u'PPluginScriptableObject::Msg_Unprotect(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_EndOffset(labeled)', 0),\n", | |
" (u'PContent::Msg_RequestMemoryReport', 0),\n", | |
" (u'PContent::Msg_PauseProfiler', 0),\n", | |
" (u'PBrowser::Msg_HandleAccessKey(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_AtkKeyBinding(labeled)', 0),\n", | |
" (u'PFileSystemRequest::Msg___delete__', 0),\n", | |
" (u'PContent::Msg_FilePathUpdate', 0),\n", | |
" (u'PDocAccessible::Msg_TableRowCount(labeled)', 0),\n", | |
" (u'PContent::Msg_GeolocationError', 0),\n", | |
" (u'PColorPicker::Msg___delete__(labeled)', 0),\n", | |
" (u'PContent::Msg_GarbageCollect', 0),\n", | |
" (u'PContent::Msg_CycleCollect', 0),\n", | |
" (u'PContent::Msg_GatherProfile', 0),\n", | |
" (u'PDocAccessible::Msg_TableColumnCount(labeled)', 0),\n", | |
" (u'PHttpChannel::Msg_FailedAsyncOpen', 0),\n", | |
" (u'PBackgroundIDBDatabase::Msg_Invalidate', 0),\n", | |
" (u'PBackgroundIDBDatabase::Msg_CloseAfterInvalidationComplete', 0),\n", | |
" (u'PDocAccessible::Msg_TableRowIndexAt(labeled)', 0),\n", | |
" (u'PContent::Msg_DomainSetChanged', 0),\n", | |
" (u'PDocAccessible::Msg_TableColumnIndexAt(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_LinkAt(labeled)', 0),\n", | |
" (u'PHttpChannel::Msg_AssociateApplicationCache', 0),\n", | |
" (u'PHttpChannel::Msg_NotifyTrackingProtectionDisabled', 0),\n", | |
" (u'PRemotePrintJob::Msg_AbortPrint', 0),\n", | |
" (u'PDocAccessible::Msg_SetCaretOffset(labeled)', 0),\n", | |
" (u'PWebSocketEventListener::Msg___delete__', 0),\n", | |
" (u'PDocAccessible::Msg_TakeFocus(labeled)', 0),\n", | |
" (u'PPSMContentDownloader::Msg___delete__', 0),\n", | |
" (u'PDocAccessible::Msg_TableRowExtentAt(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_TableCellSelected(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_TableColumnExtentAt(labeled)', 0),\n", | |
" (u'PServiceWorkerManager::Msg_NotifySoftUpdate', 0),\n", | |
" (u'PContent::Msg_PCycleCollectWithLogsConstructor', 0),\n", | |
" (u'PDocAccessible::Msg_CharBounds(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_TableCaption(labeled)', 0),\n", | |
" (u'nsHtml5ExecutorFlusher', 0),\n", | |
" (u'PCompos)torBridge::Msg_DidComposite', 0),\n", | |
" (u'PDocAccessible::Msg_TextAttributes(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_DefaultTextAttributes(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_ImageSize(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_URL(labeled)', 0),\n", | |
" (u'PContent::Msg_GetFilesResponse', 0),\n", | |
" (u'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00eflusher(labeled)',\n", | |
" 0),\n", | |
" (u'XMLHttpReqeest(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_ImagePosition(labeled)', 0),\n", | |
" (u'nsDocument::UpdateVisibilityState', 0)]" | |
] | |
}, | |
"execution_count": 8, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"[ (name, v / 1000000) for (name, v) in freq ]" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 9, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"def aggregate_time(d):\n", | |
" keyed = d['payload/processes/content/keyedHistograms/MAIN_THREAD_RUNNABLE_MS'] or {}\n", | |
" result = []\n", | |
" for key in keyed:\n", | |
" hist = keyed[key]\n", | |
" result.append((key, hist['sum']))\n", | |
" return result" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 10, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"freq = subset.flatMap(aggregate_time).reduceByKey(lambda a, b: a+b).collect()" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 11, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"freq.sort(key=lambda d: d[1], reverse=True)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 12, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"[(u'PVsync::Msg_Notify', 25048721820),\n", | |
" (u'setTimeout(labeled)', 10903759356),\n", | |
" (u'PCompositorBridge::Msg_DidComposite', 5624849144),\n", | |
" (u'setInterval(labeled)', 5005822640),\n", | |
" (u'anonymous runnable', 4155832265),\n", | |
" (u'InterSliceGCTimerFired(labeled)', 2229519373),\n", | |
" (u'PBrowser::Msg_RealMouseMoveEvent(labeled)', 1836047229),\n", | |
" (u'PHttpChannel::Msg_OnStopRequest(labeled)', 1788468440),\n", | |
" (u'CCTimerFired(labeled)', 1694369678),\n", | |
" (u'PostMessageEvent(labeled)', 1409510569),\n", | |
" (u'non-nsINamed runnable', 1282047149),\n", | |
" (u'Anonymous_callback_timer', 1262156847),\n", | |
" (u'NotifyOffThreadScriptLoadCompletedRunnable(labeled)', 1103697756),\n", | |
" (u'Anonymous_interface_timer', 831397254),\n", | |
" (u'nsHtml5ExecutorReflusher(labeled)', 823973852),\n", | |
" (u'nsDocument::DispatchContentLoadedEvents(labeled)', 797663734),\n", | |
" (u'ICCTimerFired(labeled)', 764129165),\n", | |
" (u'AsyncEventDispatcher(labeled)', 620796469),\n", | |
" (u'PBrowser::Msg_RealMouseButtonEvent(labeled)', 619091427),\n", | |
" (u'nsHtml5ExecutorFlusher(labeled)', 596160055),\n", | |
" (u'PHttpChannel::Msg_OnStartRequest(labeled)', 531969226),\n", | |
" (u'AsyncFreeSnowWhite', 458686452),\n", | |
" (u'nsInputStreamReadyEvent', 444249044),\n", | |
" (u'PContent::Msg_SetConnectivity', 428169389),\n", | |
" (u'HTMLMediaElement::DispatchAsyncEvent(labeled)', 408219930),\n", | |
" (u'GCTimerFired(labeled)', 382493421),\n", | |
" (u'PBrowser::Msg_AsyncMessage(labeled)', 346877558),\n", | |
" (u'FlushTimerCallback', 307727244),\n", | |
" (u'WindowDestroyedEvent(labeled)', 266436831),\n", | |
" (u'PBrowser::Msg_RealKeyEvent(labeled)', 261422530),\n", | |
" (u'PContent::Msg_SetXPCOMProcessAttributes', 214820881),\n", | |
" (u'ShrinkingGCTimerFired(labeled)', 193227750),\n", | |
" (u'PContent::Msg_AsyncMessage', 166693783),\n", | |
" (u'PVRManager::Msg_NotifyVRVSync', 154524944),\n", | |
" (u'FullGCTimerFired(labeled)', 140438570),\n", | |
" (u'PPluginInstance::Msg_ShowDirectBitmap(labeled)', 125740807),\n", | |
" (u'nsUnblockOnloadEvent(labeled)', 124922481),\n", | |
" (u'PHttpChannel::Msg_OnTransportAndData(labeled)', 119245763),\n", | |
" (u'XMLHttpRequest(labeled)', 107949674),\n", | |
" (u'PBrowser::Msg_LoadRemoteScript(labeled)', 103753640),\n", | |
" (u'TelemetryIPCAccumulator::IPCTimerFired', 100848835),\n", | |
" (u'CheckPluginStopEvent', 94208316),\n", | |
" (u'PBrowser::Msg_SetDocShellIsActive(labeled)', 88633068),\n", | |
" (u'ScriptLoader(labeled)', 79550595),\n", | |
" (u'PBrowser::Msg_Destroy(labeled)', 71506303),\n", | |
" (u'PBrowser::Msg_UpdateDimensions(labeled)', 71282084),\n", | |
" (u'PresShell::UpdateApproximateFrameVisibility', 64950389),\n", | |
" (u'MessagePortMessage(labeled)', 60951055),\n", | |
" (u'non-nsINamed ThrottledEventQueue runnable(labeled)', 53472940),\n", | |
" (u'PBrowser::Msg_SynthMouseMoveEvent(labeled)', 53094830),\n", | |
" (u'PContent::Msg_LoadProcessScript', 51833086),\n", | |
" (u'PPluginScriptableObject::Msg_NPN_Evaluate(labeled)', 46271499),\n", | |
" (u'AbstractThread::Runner(labeled)', 43499558),\n", | |
" (u'PTexture::Msg___delete__', 42045325),\n", | |
" (u'PPluginInstance::Msg_Show(labeled)', 41076469),\n", | |
" (u'PContent::Msg_Activate', 40864029),\n", | |
" (u'PresShell::FireResizeEvent', 39785570),\n", | |
" (u'PContent::Msg_Deactivate', 39561780),\n", | |
" (u'BlurCache', 35470230),\n", | |
" (u'nsBrowserStatusFilter::TimeoutHandler', 31405072),\n", | |
" (u'nsPresContextType::RunWillPaintObservers', 30823710),\n", | |
" (u'PBrowser::Msg_MouseWheelEvent(labeled)', 30765275),\n", | |
" (u'PVRManager::Msg_NotifyVSync', 28328680),\n", | |
" (u'nsDocument::DispatchContentLoadedEvents', 22305846),\n", | |
" (u'PJavaScript::Msg_CallOrConstruct', 20499701),\n", | |
" (u'WorkerRunnable', 19804660),\n", | |
" (u'PContent::Msg_ParentActivated', 17072067),\n", | |
" (u'PresShell::sPaintSuppressionCallback', 16631634),\n", | |
" (u'nsIDocument::HandleRebuildUserFontSet(labeled)', 15900982),\n", | |
" (u'PHttpChannel::Msg_OnStatus(labeled)', 13774188),\n", | |
" (u'nsBindingManager::DoProcessAttachedQueue', 12735853),\n", | |
" (u'nsDocument::UpdateVisibilityState(labeled)', 12720751),\n", | |
" (u'WindowDestroyedEvent', 12114480),\n", | |
" (u'StorageNotifierRunnable', 11230724),\n", | |
" (u'PContent::Msg_UpdateWindow', 10768011),\n", | |
" (u'gfxFontCache', 9816622),\n", | |
" (u'IncrementalFinalizeRunnable', 9683515),\n", | |
" (u'nsDocument::DoNotifyPossibleTitleChange(labeled)', 9074038),\n", | |
" (u'ProgressTracker::AsyncNotifyRunnable', 8130123),\n", | |
" (u'PPluginInstance::Msg_ShowDirectDXGISurface(labeled)', 7486273),\n", | |
" (u'IDecodingTask::NotifyDecodeComplete', 6696881),\n", | |
" (u'UITimerCallback_timer', 6635926),\n", | |
" (u'PBrowser::Msg_StopIMEStateManagement(labeled)', 6584326),\n", | |
" (u'PContent::Msg_SetAudioSessionData', 6505369),\n", | |
" (u'PuppetWidget::PaintTask', 5980467),\n", | |
" (u'PPluginInstance::Msg_PStreamNotifyConstructor(labeled)', 5912177),\n", | |
" (u'Anonymous_observer_timer', 5445147),\n", | |
" (u'PAPZ::Msg_RequestContentRepaint', 5136502),\n", | |
" (u'DecoderDoctorDocumentWatcher_timer', 5026119),\n", | |
" (u'SHMEM_DESTROYED_MESSAGE', 4623687),\n", | |
" (u'PBrowser::Msg_LoadURL(labeled)', 4372524),\n", | |
" (u'PHttpChannel::Msg_DeleteSelf(labeled)', 4175227),\n", | |
" (u'imgCacheExpirationTracker', 3683615),\n", | |
" (u'PPluginInstance::Msg_NPN_SetValue_NPPVpluginIsPlayingAudio(labeled)',\n", | |
" 3672499),\n", | |
" (u'PPrintProgressDialog::Msg_DialogOpened', 3474318),\n", | |
" (u'ContentUnbinder', 3358319),\n", | |
" (u'PContent::Msg_PBrowserConstructor(labeled)', 3128628),\n", | |
" (u'nsAsyncVerifyRedirectCallbackEvent', 3128039),\n", | |
" (u'HashchangeCallback(labeled)', 2519844),\n", | |
" (u'LogMessageRunnable(labeled)', 2519654),\n", | |
" (u'AsyncEventDispatcher', 2348677),\n", | |
" (u'PContent::Msg_PreferenceUpdate', 2180153),\n", | |
" (u'PContent::Msg_LoadAndRegisterSheet', 1955733),\n", | |
" (u'PBrowser::Msg_SizeModeChanged(labeled)', 1933411),\n", | |
" (u'IMENotificationSender', 1853813),\n", | |
" (u'PBrowser::Msg_RealDragEvent(labeled)', 1787716),\n", | |
" (u'PContent::Msg_InitRendering', 1780533),\n", | |
" (u'PContent::Msg_NotifyVisited', 1631781),\n", | |
" (u'PBackgroundIDBTransaction::Msg_Complete', 1619290),\n", | |
" (u'SurfaceTracker', 1585590),\n", | |
" (u'PBrowser::Msg_InitRendering(labeled)', 1540967),\n", | |
" (u'nsIDocument::SelectorCache', 1515410),\n", | |
" (u'PHttpChannel::Msg_OnStopRequest', 1484929),\n", | |
" (u'nsDocument::NotifyStyleSheetApplicableStateChanged(labeled)', 1476870),\n", | |
" (u'PBrowser::Msg_CompositionEvent(labeled)', 1466005),\n", | |
" (u'PContent::Msg_DispatchLocalStorageChange', 1364537),\n", | |
" (u'PContent::Msg_UnregisterSheet', 1361270),\n", | |
" (u'AbstractThread::Runner', 1268859),\n", | |
" (u'nsThreadShutdownAckEvent', 1268706),\n", | |
" (u'nsDocument::DoNotifyPossibleTitleChange', 1232581),\n", | |
" (u'PBackgroundIDBRequest::Msg___delete__', 1206327),\n", | |
" (u'HistoryTracker', 1153224),\n", | |
" (u'PDocAccessible::Msg___delete__(labeled)', 1103102),\n", | |
" (u'PHttpChannel::Msg_Redirect3Complete(labeled)', 1100824),\n", | |
" (u'TabChild::DelayedDeleteRunnable', 1069213),\n", | |
" (u'PBrowser::Msg_UIResolutionChanged(labeled)', 1060123),\n", | |
" (u'PendingAlertsCollector_timer', 991669),\n", | |
" (u'PContent::Msg_InitServiceWorkers', 982743),\n", | |
" (u'PBrowser::Msg_HandleTap(labeled)', 967993),\n", | |
" (u'PBackgroundIDBCursor::Msg_Response', 943229),\n", | |
" (u'PHttpChannel::Msg_OnProgress(labeled)', 847240),\n", | |
" (u'ProxyReleaseEvent', 824020),\n", | |
" (u'PContent::Msg_BlobURLRegistration', 820074),\n", | |
" (u'non-nsINamed ThrottledEventQueue runnable', 807630),\n", | |
" (u'PFilePicker::Msg___delete__(labeled)', 794921),\n", | |
" (u'PHttpChannel::Msg_SetPriority(labeled)', 757401),\n", | |
" (u'PrefChangedUpdateTimerCallback', 751031),\n", | |
" (u'PHttpChannel::Msg_NotifyTrackingProtectionDisabled(labeled)', 712018),\n", | |
" (u'PHttpChannel::Msg_Redirect1Begin(labeled)', 682955),\n", | |
" (u'PJavaScript::Msg_Get', 681642),\n", | |
" (u'nsHTMLDNSPrefetch::nsDeferrals::Tick', 607437),\n", | |
" (u'LayerActivityTracker', 540920),\n", | |
" (u'PContent::Msg_SetProcessSandbox', 531810),\n", | |
" (u'WorkerRunnable(labeled)', 506837),\n", | |
" (u'PContent::Msg_InitProcessHangMonitor', 461965),\n", | |
" (u'(labeled)', 371666),\n", | |
" (u'PBackgroundIDBFactoryRequest::Msg___delete__', 366186),\n", | |
" (u'nsDelayedEventDispatcher(labeled)', 349182),\n", | |
" (u'PContent::Msg_DataStoragePut', 343504),\n", | |
" (u'PBrowser::Msg_RealTouchMoveEvent(labeled)', 332070),\n", | |
" (u'CharSetChangingRunnable', 314469),\n", | |
" (u'PDocAccessible::Msg_ParentCOMProxy(labeled)', 307909),\n", | |
" (u'PContent::Msg_NotifyAlertsObserver', 288192),\n", | |
" (u'PBrowser::Msg_SwappedWithOtherRemoteLoader(labeled)', 279241),\n", | |
" (u'PCacheOp::Msg___delete__', 264350),\n", | |
" (u'MediaStreamGraphStableStateRunnable', 253533),\n", | |
" (u'nsWindowMemoryReporter::AsyncCheckForGhostWindows_timer', 246942),\n", | |
" (u'PContent::Msg_RegisterChrome', 239131),\n", | |
" (u'PBrowser::Msg_RealTouchEvent(labeled)', 233467),\n", | |
" (u'PHttpChannel::Msg_OnTransportAndData', 226077),\n", | |
" (u'PBrowser::Msg_Show(labeled)', 225753),\n", | |
" (u'Canceled_timer(labeled)', 196508),\n", | |
" (u'PJavaScript::Msg_DropObject', 190083),\n", | |
" (u'PostMessageEvent', 181661),\n", | |
" (u'ChannelMediaResource::DoNotifyDataReceived', 178769),\n", | |
" (u'PContent::Msg_FlushMemory', 174829),\n", | |
" (u'PContent::Msg_LastPrivateDocShellDestroyed', 164657),\n", | |
" (u'PWebBrowserPersistDocument::Msg_PWebBrowserPersistSerializeConstructor',\n", | |
" 158403),\n", | |
" (u'nsDocument::NotifyStyleSheetApplicableStateChanged', 152511),\n", | |
" (u'imgRequestProxy::DoRemoveFromLoadGroup', 149391),\n", | |
" (u'PStorage::Msg_Observe', 148761),\n", | |
" (u'PContent::Msg_GMPsChanged', 146854),\n", | |
" (u'PContent::Msg_PBlobConstructor', 140571),\n", | |
" (u'PBlob::Msg___delete__', 139951),\n", | |
" (u'PWebSocket::Msg_OnMessageAvailable', 139228),\n", | |
" (u'PFTPChannel::Msg_OnDataAvailable', 133131),\n", | |
" (u'HTMLMediaElement::ProgressTimerCallback', 130835),\n", | |
" (u'nsPresContext::HandleMediaFeatureValuesChangedEvent', 124066),\n", | |
" (u'PCompositorBridge::Msg_CompositorUpdated', 123425),\n", | |
" (u'PContent::Msg_StartProfiler', 120570),\n", | |
" (u'nsResolveOrRejectPendingPlayPromisesRunner(labeled)', 119454),\n", | |
" (u'PHttpChannel::Msg_SetPriority', 113147),\n", | |
" (u'PCompositorBridge::Msg_ParentAsyncMessages', 107838),\n", | |
" (u'PContent::Msg_NotifyEmptyHTTPCache', 103721),\n", | |
" (u'PPluginInstance::Msg_PluginFocusChange(labeled)', 98914),\n", | |
" (u'nsPresContext::HandleRebuildCounterStyles', 98824),\n", | |
" (u'StorageCacheHolder_timer', 98603),\n", | |
" (u'nsIDocument::HandleRebuildUserFontSet', 95476),\n", | |
" (u'PContentPermissionRequest::Msg_NotifyResult', 92553),\n", | |
" (u'PHal::Msg_NotifyWakeLockChange', 90817),\n", | |
" (u'NotifyChannelActiveRunnable', 90221),\n", | |
" (u'PJavaScript::Msg_DropTemporaryStrongReferences', 83376),\n", | |
" (u'PContent::Msg_EndDragSession', 76250),\n", | |
" (u'imgCancelRunnable', 72969),\n", | |
" (u'nsCaret::CaretBlinkCallback_timer', 71299),\n", | |
" (u'PContent::Msg_BlobURLUnregistration', 70959),\n", | |
" (u'PHttpChannel::Msg_OnStartRequest', 70583),\n", | |
" (u'ProgressTracker::OnDiscard', 65830),\n", | |
" (u'ProxyReleaseEvent(labeled)', 64549),\n", | |
" (u'PStorage::Msg_OriginsHavingData', 61844),\n", | |
" (u'PHttpChannel::Msg_NotifyTrackingResource(labeled)', 59303),\n", | |
" (u'PPluginInstance::Msg_NPN_GetValue_NPNVnetscapeWindow(labeled)', 58370),\n", | |
" (u'PBrowser::Msg_SetUseGlobalHistory(labeled)', 52571),\n", | |
" (u'FinalizationEvent', 51789),\n", | |
" (u'nsIThread::AsyncShutdown', 51156),\n", | |
" (u'GradientCache', 49746),\n", | |
" (u'PWebSocket::Msg_OnAcknowledge', 48346),\n", | |
" (u'PContent::Msg_ReinitRendering', 48036),\n", | |
" (u'PContent::Msg_InitBlobURLs', 47465),\n", | |
" (u'PContent::Msg_SetOffline', 46461),\n", | |
" (u'PStorage::Msg_LoadItem', 45398),\n", | |
" (u'PAPZ::Msg_NotifyAPZStateChange', 45367),\n", | |
" (u'FontFaceSet::CheckLoadingFinishedAfterDelay', 43135),\n", | |
" (u'ProgressTracker::SyncNotifyProgress', 37936),\n", | |
" (u'POfflineCacheUpdate::Msg_NotifyStateEvent', 37230),\n", | |
" (u'PBrowser::Msg_NavigateByKey(labeled)', 36564),\n", | |
" (u'nsHtml5SVGLoadDispatcher(labeled)', 35497),\n", | |
" (u'HTMLMediaElement::DispatchAsyncEvent', 33234),\n", | |
" (u'PHttpChannel::Msg_ReportSecurityMessage(labeled)', 33035),\n", | |
" (u'PBackground::Msg_PFileDescriptorSetConstructor', 29229),\n", | |
" (u'PAPZ::Msg_Destroy', 29048),\n", | |
" (u'PContent::Msg_RegisterChromeItem', 28270),\n", | |
" (u'PBrowser::Msg_SuppressDisplayport(labeled)', 27812),\n", | |
" (u'PContent::Msg_PCycleCollectWithLogsConstructor', 26481),\n", | |
" (u'IDecodingTask::NotifyProgress', 25345),\n", | |
" (u'RuleProcessorCache::ExpirationTracker', 23130),\n", | |
" (u'PContent::Msg_DataStorageRemove', 21669),\n", | |
" (u'ScrollFrameActivityTracker', 21297),\n", | |
" (u'PBrowserStream::Msg_StreamDestroyed(labeled)', 21274),\n", | |
" (u'WorkerThreadPrimaryRunnable::FinishedRunnable', 21216),\n", | |
" (u'Canceled_timer', 20180),\n", | |
" (u'PAsmJSCacheEntry::Msg_OnOpenMetadataForRead', 19979),\n", | |
" (u'TransactionIdAllocator::NotifyTransactionCompleted', 18934),\n", | |
" (u'PHttpChannel::Msg_OnStatus', 17948),\n", | |
" (u'ImageCache', 17573),\n", | |
" (u'PHttpChannel::Msg_FailedAsyncOpen(labeled)', 17310),\n", | |
" (u'PContent::Msg_NotifyPushSubscriptionModifiedObservers', 15544),\n", | |
" (u'PFTPChannel::Msg_OnStartRequest', 14887),\n", | |
" (u'PMessagePort::Msg_Entangled', 13965),\n", | |
" (u'PJavaScript::Msg_Set', 12573),\n", | |
" (u'PBackground::Msg_PCacheConstructor', 12541),\n", | |
" (u'PMedia::Msg_GetPrincipalKeyResponse', 12394),\n", | |
" (u'PPluginInstance::Msg_PPluginSurfaceConstructor(labeled)', 12098),\n", | |
" (u'PStorage::Msg_LoadDone', 11995),\n", | |
" (u'PBrowser::Msg_ThemeChanged(labeled)', 11713),\n", | |
" (u'XMLHttpRequest', 11694),\n", | |
" (u'PWebSocket::Msg___delete__', 11611),\n", | |
" (u'PBrowser::Msg_MenuKeyboardListenerInstalled(labeled)', 11552),\n", | |
" (u'PTCPSocket::Msg_Callback', 11196),\n", | |
" (u'PWyciwygChannel::Msg_OnStartRequest', 11102),\n", | |
" (u'POfflineCacheUpdate::Msg_Finish', 10985),\n", | |
" (u'PWebSocket::Msg_OnStart', 10823),\n", | |
" (u'PHttpChannel::Msg_DeleteSelf', 10565),\n", | |
" (u'PBlobStream::Msg___delete__', 9973),\n", | |
" (u'PBackgroundIDBDatabase::Msg_PBackgroundIDBVersionChangeTransactionConstructor',\n", | |
" 9735),\n", | |
" (u'PBrowser::Msg_PRenderFrameConstructor(labeled)', 9273),\n", | |
" (u'PHttpChannel::Msg_Redirect1Begin', 8862),\n", | |
" (u'PContent::Msg_ActivateA11y', 8599),\n", | |
" (u'PContent::Msg_GatherProfile', 7711),\n", | |
" (u'PContent::Msg_PushWithData', 7430),\n", | |
" (u'PWebSocket::Msg_OnBinaryMessageAvailable', 7174),\n", | |
" (u'<unknown IPC msg name>', 7117),\n", | |
" (u'PContent::Msg_GarbageCollect', 7033),\n", | |
" (u'PContent::Msg_ClearImageCache', 6506),\n", | |
" (u'nsCallRequestFullScreen(labeled)', 5922),\n", | |
" (u'DebuggerOnGCRunnable', 5881),\n", | |
" (u'PServiceWorkerManager::Msg_NotifyRegister', 5688),\n", | |
" (u'PHttpChannel::Msg_IssueDeprecationWarning(labeled)', 5384),\n", | |
" (u'PWebSocket::Msg_OnStop', 5369),\n", | |
" (u'ShortTermURISpecCache', 5264),\n", | |
" (u'PBackgroundIDBFactory::Msg___delete__', 5026),\n", | |
" (u'PWebBrowserPersistDocument::Msg_PWebBrowserPersistResourcesConstructor',\n", | |
" 5010),\n", | |
" (u'PLayerTransaction::Msg___delete__', 4877),\n", | |
" (u'PMessagePort::Msg_ReceiveData', 4742),\n", | |
" (u'PContent::Msg_PWebBrowserPersistDocumentConstructor', 4724),\n", | |
" (u'PContent::Msg_AddPermission', 4715),\n", | |
" (u'PJavaScript::Msg_Has', 4438),\n", | |
" (u'ScrollbarActivity::FadeBeginTimerFired', 4377),\n", | |
" (u'nsDocumentShownDispatcher', 4268),\n", | |
" (u'PAsmJSCacheEntry::Msg___delete__', 4036),\n", | |
" (u'PPluginInstance::Msg_RevokeCurrentDirectSurface(labeled)', 3884),\n", | |
" (u'PBackgroundIDBTransaction::Msg___delete__', 3816),\n", | |
" (u'PExternalHelperApp::Msg___delete__', 3753),\n", | |
" (u'PBackgroundIDBDatabase::Msg___delete__', 3725),\n", | |
" (u'PContent::Msg_InvokeDragSession', 3706),\n", | |
" (u'CategoryNotificationRunnable', 3694),\n", | |
" (u'PPluginInstance::Msg_NPN_SetValue_NPPVpluginDrawingModel(labeled)', 3419),\n", | |
" (u'PPluginScriptableObject::Msg_Invoke(labeled)', 3409),\n", | |
" (u'PCacheStorage::Msg___delete__', 2876),\n", | |
" (u'PBackgroundIDBFactory::Msg_PBackgroundIDBDatabaseConstructor', 2578),\n", | |
" (u'PContent::Msg_SetCaptivePortalState', 2497),\n", | |
" (u'nsHtml5SVGLoadDispatcher', 2482),\n", | |
" (u'TelemetryIPCAccumulator::ArmIPCTimer', 2389),\n", | |
" (u'PFTPChannel::Msg_OnStopRequest', 2353),\n", | |
" (u'PBroadcastChannel::Msg_Notify', 2290),\n", | |
" (u'PBackgroundIDBCursor::Msg___delete__', 2267),\n", | |
" (u'PBrowserStream::Msg_NPN_DestroyStream(labeled)', 2266),\n", | |
" (u'PMessagePort::Msg___delete__', 2225),\n", | |
" (u'PCache::Msg___delete__', 2089),\n", | |
" (u'PChannelDiverter::Msg___delete__', 2086),\n", | |
" (u'PVsync::Msg_VsyncRate', 1926),\n", | |
" (u'PJavaScript::Msg_InstanceOf', 1889),\n", | |
" (u'PStreamNotify::Msg_RedirectNotifyResponse(labeled)', 1823),\n", | |
" (u'PCacheStreamControl::Msg___delete__', 1819),\n", | |
" (u'PDNSRequest::Msg_LookupCompleted', 1739),\n", | |
" (u'PAsmJSCacheEntry::Msg_OnOpenCacheFile', 1697),\n", | |
" (u'PHttpChannel::Msg_AssociateApplicationCache(labeled)', 1677),\n", | |
" (u'PVRManager::Msg_GamepadUpdate', 1640),\n", | |
" (u'PServiceWorkerManager::Msg_NotifyRemoveAll', 1625),\n", | |
" (u'PJavaScript::Msg_DOMInstanceOf', 1520),\n", | |
" (u'PContent::Msg_UpdateDictionaryList', 1427),\n", | |
" (u'nsDocument::IntersectionObserverNotification(labeled)', 1310),\n", | |
" (u'PSpeechSynthesis::Msg_NotifyVoicesChanged', 1186),\n", | |
" (u'PContent::Msg_RequestMemoryReport', 1185),\n", | |
" (u'PBackgroundIDBVersionChangeTransaction::Msg___delete__', 1161),\n", | |
" (u'PTCPSocket::Msg_UpdateBufferedAmount', 1128),\n", | |
" (u'PBackground::Msg_PCacheStreamControlConstructor', 1127),\n", | |
" (u'PContent::Msg_DataStorageClear', 1077),\n", | |
" (u'SHMEM_CREATED_MESSAGE', 1021),\n", | |
" (u'PBackground::Msg_PBlobConstructor', 1018),\n", | |
" (u'PPluginSurface::Msg___delete__(labeled)', 873),\n", | |
" (u'HTMLMediaElement::VideoDecodeSuspendTimerCallback', 813),\n", | |
" (u'TileExpiry', 780),\n", | |
" (u'PContent::Msg_CycleCollect', 767),\n", | |
" (u'PColorPicker::Msg_Update(labeled)', 757),\n", | |
" (u'PStreamNotify::Msg_RedirectNotifyResponse', 732),\n", | |
" (u'ThrottledEventQueue::Inner::ShutdownComplete', 726),\n", | |
" (u'PStorage::Msg_LoadUsage', 675),\n", | |
" (u'PPluginInstance::Msg_NPN_PopPopupsEnabledState(labeled)', 653),\n", | |
" (u'PWebSocket::Msg_OnServerClose', 642),\n", | |
" (u'PContent::Msg_Shutdown', 631),\n", | |
" (u'PSpeechSynthesisRequest::Msg_OnResume', 626),\n", | |
" (u'PSendStream::Msg___delete__', 605),\n", | |
" (u'PHttpChannel::Msg_ReportSecurityMessage', 584),\n", | |
" (u'PPluginInstance::Msg_SetNetscapeWindowAsParent(labeled)', 579),\n", | |
" (u'PSpeechSynthesisRequest::Msg_OnPause', 566),\n", | |
" (u'PBrowser::Msg_SelectionEvent(labeled)', 560),\n", | |
" (u'PHttpChannel::Msg_DivertMessages(labeled)', 511),\n", | |
" (u'PContent::Msg_StopProfiler', 497),\n", | |
" (u'PWyciwygChannel::Msg_OnStopRequest', 492),\n", | |
" (u'PBrowser::Msg_UpdateNativeWindowHandle(labeled)', 445),\n", | |
" (u'PPluginInstance::Msg_NPN_PushPopupsEnabledState(labeled)', 432),\n", | |
" (u'PContent::Msg_BidiKeyboardNotify', 423),\n", | |
" (u'PPluginSurface::Msg___delete__', 361),\n", | |
" (u'POfflineCacheUpdate::Msg_AssociateDocuments', 360),\n", | |
" (u'nsContentSink_timer', 356),\n", | |
" (u'PPluginInstance::Msg_NPN_GetValue_SupportsAsyncBitmapSurface(labeled)',\n", | |
" 355),\n", | |
" (u'PPluginInstance::Msg_InitDXGISurface(labeled)', 331),\n", | |
" (u'PHttpChannel::Msg_FinishInterceptedRedirect(labeled)', 326),\n", | |
" (u'DummyEvent', 305),\n", | |
" (u'PContent::Msg_GeolocationUpdate', 293),\n", | |
" (u'PContent::Msg_PushSubscriptionChange', 292),\n", | |
" (u'PContentPermissionRequest::Msg___delete__', 260),\n", | |
" (u'PBrowser::Msg_SetKeyboardIndicators(labeled)', 259),\n", | |
" (u'nsGlobalWindow::UnblockScriptedClosing(labeled)', 255),\n", | |
" (u'PHttpChannel::Msg_OnProgress', 247),\n", | |
" (u'PHttpChannel::Msg_Redirect3Complete', 239),\n", | |
" (u'PAPZ::Msg_SetScrollingRootContent', 213),\n", | |
" (u'PBackgroundIDBVersionChangeTransaction::Msg_Complete', 180),\n", | |
" (u'PVRManager::Msg_UpdateDisplayInfo', 172),\n", | |
" (u'PHttpChannel::Msg_FlushedForDiversion(labeled)', 159),\n", | |
" (u'PVRLayer::Msg___delete__', 152),\n", | |
" (u'PPrintSettingsDialog::Msg___delete__', 144),\n", | |
" (u'PContent::Msg_InitGMPService', 142),\n", | |
" (u'PDocAccessible::Msg_SetCaretOffset(labeled)', 136),\n", | |
" (u'PContent::Msg_Push', 116),\n", | |
" (u'PJavaScript::Msg_GetPropertyDescriptor', 113),\n", | |
" (u'PGamepadEventChannel::Msg___delete__', 113),\n", | |
" (u'PContent::Msg_AppInfo', 111),\n", | |
" (u'MessagePortMessage', 99),\n", | |
" (u'nsHtml5ExecutorFlusher', 93),\n", | |
" (u'PPluginInstance::Msg_FinalizeDXGISurface(labeled)', 93),\n", | |
" (u'PServiceWorkerManager::Msg_NotifyUnregister', 91),\n", | |
" (u'PCompositorBridge::Msg_InvalidateLayers', 89),\n", | |
" (u'CompositableForwarder', 89),\n", | |
" (u'PContent::Msg_MinimizeMemoryUsage', 84),\n", | |
" (u'PContent::Msg_RemoteType', 83),\n", | |
" (u'PHttpChannel::Msg_NotifyTrackingResource', 81),\n", | |
" (u'PWebBrowserPersistDocument::Msg___delete__', 74),\n", | |
" (u'PRemotePrintJob::Msg___delete__', 74),\n", | |
" (u'PointerLockRequest(labeled)', 65),\n", | |
" (u'PPrinting::Msg_PRemotePrintJobConstructor', 56),\n", | |
" (u'PAPZ::Msg_NotifyAsyncScrollbarDragRejected', 51),\n", | |
" (u'PDocAccessible::Msg_State(labeled)', 49),\n", | |
" (u'PPluginInstance::Msg_NPN_GetValue_PreferredDXGIAdapter(labeled)', 48),\n", | |
" (u'PBlob::Msg_CreatedFromKnownBlob', 47),\n", | |
" (u'PGamepadEventChannel::Msg_GamepadUpdate', 45),\n", | |
" (u'PContent::Msg_GetFilesResponse', 41),\n", | |
" (u'PHal::Msg_NotifySensorChange', 38),\n", | |
" (u'PRemotePrintJob::Msg_PageProcessed', 35),\n", | |
" (u'PBrowser::Msg_HandledWindowedPluginKeyEvent(labeled)', 34),\n", | |
" (u'PContent::Msg_GeolocationError', 34),\n", | |
" (u'PBackgroundIDBDatabase::Msg_VersionChange', 32),\n", | |
" (u'PContent::Msg_FileCreationResponse', 29),\n", | |
" (u'PSpeechSynthesis::Msg_VoiceAdded', 26),\n", | |
" (u'PColorPicker::Msg___delete__(labeled)', 24),\n", | |
" (u'PHttpChannel::Msg_NotifyTrackingProtectionDisabled', 24),\n", | |
" (u'PRemotePrintJob::Msg_PrintInitializationResult', 22),\n", | |
" (u'PDocAccessible::Msg_CurValue(labeled)', 18),\n", | |
" (u'Empty_microtask_runnable', 15),\n", | |
" (u'PJavaScript::Msg_GetOwnPropertyDescriptor', 12),\n", | |
" (u'PJavaScript::Msg_GetPrototype', 11),\n", | |
" (u'PPluginInstance::Msg_OnWindowedPluginKeyEvent(labeled)', 9),\n", | |
" (u'PCompositorBridge::Msg_SharedCompositorFrameMetrics', 9),\n", | |
" (u'PJavaScript::Msg_Delete', 8),\n", | |
" (u'PBackgroundIDBRequest::Msg_Preprocess', 8),\n", | |
" (u'PBroadcastChannel::Msg___delete__', 7),\n", | |
" (u'PTCPSocket::Msg___delete__', 7),\n", | |
" (u'PBackgroundIDBFactoryRequest::Msg_Blocked', 7),\n", | |
" (u'PCompositorBridge::Msg_ReleaseSharedCompositorFrameMetrics', 6),\n", | |
" (u'PFileDescriptorSet::Msg___delete__', 6),\n", | |
" (u'PDocAccessible::Msg_TakeFocus(labeled)', 6),\n", | |
" (u'PJavaScript::Msg_GetPropertyKeys', 4),\n", | |
" (u'PWyciwygChannel::Msg_OnDataAvailable', 2),\n", | |
" (u'PDocAccessible::Msg_Attributes(labeled)', 2),\n", | |
" (u'PRemotePrintJob::Msg_AbortPrint', 1),\n", | |
" (u'PPluginInstance::Msg_NPN_ConvertPoint(labeled)', 1),\n", | |
" (u'PPluginInstance::Msg_NPN_GetValue_SupportsAsyncDXGISurface(labeled)', 1),\n", | |
" (u'PWebSocketEventListener::Msg_FrameSent', 1),\n", | |
" (u'PExternalHelperApp::Msg_Cancel', 0),\n", | |
" (u'PHttpChannel::Msg_AssociateApplicationCache', 0),\n", | |
" (u'PDocAccessible::Msg_CaretOffset(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_GetTextAtOffset(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_ActionCount(labeled)', 0),\n", | |
" (u'PServiceWorkerManager::Msg_NotifySoftUpdate', 0),\n", | |
" (u'nsDocument::UpdateVisibilityState', 0),\n", | |
" (u'PDocAccessible::Msg_TableRowIndexAt(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_ImageSize(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_TableCaption(labeled)', 0),\n", | |
" (u'PWebSocketEventListener::Msg_FrameReceived', 0),\n", | |
" (u'PPluginScriptableObject::Msg_GetParentProperty(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_URL(labeled)', 0),\n", | |
" (u'PContent::Msg_FilePathUpdate', 0),\n", | |
" (u'PHttpChannel::Msg_FailedAsyncOpen', 0),\n", | |
" (u'PDocAccessible::Msg_Extents(labeled)', 0),\n", | |
" (u'PJavaScript::Msg_IsExtensible', 0),\n", | |
" (u'PCompos)torBridge::Msg_DidComposite', 0),\n", | |
" (u'PMessagePort::Msg_StopSendingDataConfirmed', 0),\n", | |
" (u'PBrowser::Msg_HandleAccessKey(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_Name(labeled)', 0),\n", | |
" (u'PPluginScriptableObject::Msg___delete__', 0),\n", | |
" (u'PFTPChannel::Msg_DivertMessages', 0),\n", | |
" (u'PDocAccessible::Msg_LinkIndexAtOffset(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_SelectionBoundsAt(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_AtkKeyBinding(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_AnchorURIAt(labeled)', 0),\n", | |
" (u'PJavaScript::Msg_DefineProperty', 0),\n", | |
" (u'PDocAccessible::Msg_Description(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_URLDocTypeMimeType(labeled)', 0),\n", | |
" (u'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00eflusher(labeled)',\n", | |
" 0),\n", | |
" (u'PWebBrowserPersistDocument::Msg_SetPersistFlags', 0),\n", | |
" (u'PPSMContentDownloader::Msg___delete__', 0),\n", | |
" (u'PJavaScript::Msg_HasInstance', 0),\n", | |
" (u'PDocAccessible::Msg_TableRowExtentAt(labeled)', 0),\n", | |
" (u'PJavaScript::Msg_GetPrototypeIfOrdinary', 0),\n", | |
" (u'PContent::Msg_PauseProfiler', 0),\n", | |
" (u'PDocAccessible::Msg_TextAttributes(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_TextBounds(labeled)', 0),\n", | |
" (u'PFTPChannel::Msg_FlushedForDiversion', 0),\n", | |
" (u'PServiceWorkerManager::Msg_NotifyRemove', 0),\n", | |
" (u'PStorage::Msg_Error', 0),\n", | |
" (u'PDocAccessible::Msg_LinkAt(labeled)', 0),\n", | |
" (u'PContent::Msg_DomainSetChanged', 0),\n", | |
" (u'PDocAccessible::Msg_StartOffset(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_Relations(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_TableColumnIndexAt(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_MinValue(labeled)', 0),\n", | |
" (u'PPluginInstance::Msg_NPN_GetValue_NPNVdocumentOrigin(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_TableCellAt(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_ActionNameAt(labeled)', 0),\n", | |
" (u'PFileSystemRequest::Msg___delete__', 0),\n", | |
" (u'PDocAccessible::Msg_SelectionCount(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_MaxValue(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_CharBounds(labeled)', 0),\n", | |
" (u'PJavaScript::Msg_IsArray', 0),\n", | |
" (u'XMLHttpReqeest(labeled)', 0),\n", | |
" (u'PBackgroundIDBDatabase::Msg_Invalidate', 0),\n", | |
" (u'PDocAccessible::Msg_TableCellSelected(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_EndOffset(labeled)', 0),\n", | |
" (u'PPluginScriptableObject::Msg_Unprotect(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_TableColumnCount(labeled)', 0),\n", | |
" (u'PContent::Msg_VarUpdate', 0),\n", | |
" (u'PDocAccessible::Msg_LinkCount(labeled)', 0),\n", | |
" (u'PJavaScript::Msg_ClassName', 0),\n", | |
" (u'PSpeechSynthesis::Msg_IsSpeakingChanged', 0),\n", | |
" (u'PBackgroundIDBDatabase::Msg_CloseAfterInvalidationComplete', 0),\n", | |
" (u'PWebSocketEventListener::Msg___delete__', 0),\n", | |
" (u'PDocAccessible::Msg_ImagePosition(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_TextSubstring(labeled)', 0),\n", | |
" (u'PPluginInstance::Msg_NPN_GetURL(labeled)', 0),\n", | |
" (u'PSpeechSynthesis::Msg_SetDefaultVoice', 0),\n", | |
" (u'PDocAccessible::Msg_TableRowCount(labeled)', 0),\n", | |
" (u'PDocAccessible::Msg_DefaultTextAttributes(labeled)', 0),\n", | |
" (u'PFTPChannel::Msg_DeleteSelf', 0),\n", | |
" (u'PDocAccessible::Msg_CharacterCount(labeled)', 0),\n", | |
" (u'PJavaScript::Msg_GetBuiltinClass', 0),\n", | |
" (u'PDocAccessible::Msg_TableColumnExtentAt(labeled)', 0)]" | |
] | |
}, | |
"execution_count": 12, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"freq" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [] | |
} | |
], | |
"metadata": { | |
"anaconda-cloud": {}, | |
"kernelspec": { | |
"display_name": "Python [default]", | |
"language": "python", | |
"name": "python2" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 2 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython2", | |
"version": "2.7.12" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 0 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# In[1]: | |
import ujson as json | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
import numpy as np | |
import plotly.plotly as py | |
from plotly.graph_objs import * | |
from moztelemetry import get_pings_properties, get_one_ping_per_client | |
from moztelemetry.dataset import Dataset | |
get_ipython().magic(u'matplotlib inline') | |
# In[2]: | |
Dataset.from_source("telemetry").schema | |
# In[3]: | |
pings = Dataset.from_source("telemetry") .where(docType='main') .where(appBuildId=lambda x: x.startswith('20170219') or x.startswith('20170220')) .where(appUpdateChannel="nightly") .records(sc, sample=1.0) | |
# ... and extract only the attributes we need from the Telemetry submissions: | |
# In[4]: | |
subset = get_pings_properties(pings, ["payload/processes/content/keyedHistograms/MAIN_THREAD_RUNNABLE_MS"]) | |
# In[5]: | |
def count(d): | |
keyed = d['payload/processes/content/keyedHistograms/MAIN_THREAD_RUNNABLE_MS'] or {} | |
result = [] | |
for key in keyed: | |
hist = keyed[key] | |
values = hist['values'] | |
s = 0 | |
for index in values: | |
s += values[index] | |
result.append((key, s)) | |
return result | |
# In[6]: | |
freq = subset.flatMap(count).reduceByKey(lambda a, b: a+b).collect() | |
# In[7]: | |
freq.sort(key=lambda d: d[1], reverse=True) | |
# In[8]: | |
[ (name, v / 1000000) for (name, v) in freq ] | |
# In[9]: | |
def aggregate_time(d): | |
keyed = d['payload/processes/content/keyedHistograms/MAIN_THREAD_RUNNABLE_MS'] or {} | |
result = [] | |
for key in keyed: | |
hist = keyed[key] | |
result.append((key, hist['sum'])) | |
return result | |
# In[10]: | |
freq = subset.flatMap(aggregate_time).reduceByKey(lambda a, b: a+b).collect() | |
# In[11]: | |
freq.sort(key=lambda d: d[1], reverse=True) | |
# In[12]: | |
freq | |
# In[ ]: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment