Backed out changeset d195190adc48 (bug 851611)

--HG--
rename : tools/profiler/GeckoProfiler.h => tools/profiler/sampler.h
rename : tools/profiler/GeckoProfilerImpl.h => tools/profiler/sps_sampler.h
This commit is contained in:
Ed Morley 2013-03-18 14:10:30 +00:00
Родитель 31e395687b
Коммит 3091d3e2b6
75 изменённых файлов: 80 добавлений и 80 удалений

Просмотреть файл

@ -83,7 +83,7 @@
#include "mozilla/dom/Element.h"
#include "mozilla/layout/RenderFrameParent.h"
#include "nsIAppsService.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "jsapi.h"
#include "mozilla/dom/HTMLIFrameElement.h"

Просмотреть файл

@ -65,7 +65,7 @@
#include "nsIChannelPolicy.h"
#include "nsChannelPolicy.h"
#include "mozilla/dom/Element.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsObjectFrame.h"
#include "nsDOMClassInfo.h"
#include "nsWrapperCacheInlines.h"

Просмотреть файл

@ -69,7 +69,7 @@
#include "nsIFileChannel.h"
#include "mozilla/Telemetry.h"
#include "jsfriendapi.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "mozilla/dom/EncodingUtils.h"
#include "mozilla/dom/XMLHttpRequestBinding.h"
#include "nsIDOMFormData.h"

Просмотреть файл

@ -18,7 +18,7 @@
#include "nsFrameLoader.h"
#include "nsDOMTouchEvent.h"
#include "nsDOMStorage.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "GeneratedEvents.h"
using namespace mozilla;

Просмотреть файл

@ -95,7 +95,7 @@
#include "mozilla/Preferences.h"
#include "mozilla/LookAndFeel.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsIDOMClientRect.h"

Просмотреть файл

@ -14,7 +14,7 @@
#include "nsServiceManagerUtils.h"
#include "nsIDOMApplicationRegistry.h"
#include "nsIPermissionManager.h"
#include "GeckoProfiler.h"
#include "sampler.h"
using namespace mozilla;
using namespace mozilla::dom;

Просмотреть файл

@ -17,7 +17,7 @@
#include "nsIPropertyBag2.h"
#include "mozilla/dom/Element.h"
#include "nsObjectLoadingContent.h"
#include "GeckoProfiler.h"
#include "sampler.h"
namespace mozilla {
namespace dom {

Просмотреть файл

@ -63,7 +63,7 @@
#include "mozilla/dom/Element.h"
#include "mozilla/dom/indexedDB/FileInfo.h"
#include "mozilla/dom/indexedDB/IndexedDatabaseManager.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsDOMBlobBuilder.h"
#include "nsIDOMFileHandle.h"
#include "nsPrintfCString.h"

Просмотреть файл

@ -82,7 +82,7 @@
#include "mozilla/Attributes.h"
#include "mozilla/dom/CanvasRenderingContext2DBinding.h"
#include "GeckoProfiler.h"
#include "sampler.h"
using namespace mozilla;
using namespace mozilla::dom;

Просмотреть файл

@ -25,7 +25,7 @@
#include "nsContentUtils.h"
#include "nsNetUtil.h"
#include "nsPluginNativeWindow.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsPluginInstanceOwner.h"
#define MAGIC_REQUEST_CONTEXT 0x01020304

Просмотреть файл

@ -38,7 +38,7 @@
#include "PluginHangUIParent.h"
#include "mozilla/widget/AudioSession.h"
#endif
#include "GeckoProfiler.h"
#include "sampler.h"
using base::KillProcess;

Просмотреть файл

@ -8,7 +8,7 @@
#include "mozilla/dom/ContentChild.h"
#include "nsError.h"
#include "GeckoProfiler.h"
#include "sampler.h"
namespace mozilla {
namespace dom {

Просмотреть файл

@ -24,7 +24,7 @@
#include "mozilla/Telemetry.h"
#include "nsThreadUtils.h"
#include "GeckoProfiler.h"
#include "sampler.h"
using namespace mozilla;

Просмотреть файл

@ -16,7 +16,7 @@
#include "gfxFailure.h"
#include "prenv.h"
#include "mozilla/Preferences.h"
#include "GeckoProfiler.h"
#include "sampler.h"
using namespace mozilla::gfx;

Просмотреть файл

@ -12,7 +12,7 @@
#include "gfxUtils.h"
#include "ipc/AutoOpenSurface.h"
#include "nsDeviceContext.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include <algorithm>
namespace mozilla {

Просмотреть файл

@ -15,7 +15,7 @@
#include "gfxPlatform.h"
#include "nsXULAppAPI.h"
#include "RenderTrace.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#define PIXMAN_DONT_DEFINE_STDINT
#include "pixman.h"

Просмотреть файл

@ -7,7 +7,7 @@
#include "gfxUtils.h"
#include "nsIWidget.h"
#include "RenderTrace.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "prprf.h"

Просмотреть файл

@ -6,7 +6,7 @@
#include "mozilla/MathAlgorithms.h"
#include "BasicTiledThebesLayer.h"
#include "gfxImageSurface.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "gfxPlatform.h"
#ifdef GFX_TILEDLAYER_DEBUG_OVERLAY

Просмотреть файл

@ -21,7 +21,7 @@
#include "gfxImageSurface.h"
#include "gfxPlatform.h"
#include "GeckoProfiler.h"
#include "sampler.h"
using namespace android;
using namespace base;

Просмотреть файл

@ -20,7 +20,7 @@
#include "ShadowLayerChild.h"
#include "gfxipc/ShadowLayerUtils.h"
#include "RenderTrace.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsXULAppAPI.h"
using namespace mozilla::ipc;

Просмотреть файл

@ -35,7 +35,7 @@
#include "gfxCrashReporterUtils.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#ifdef MOZ_WIDGET_ANDROID
#include <android/log.h>

Просмотреть файл

@ -20,7 +20,7 @@
#include "gfxPattern.h"
#include "gfxPlatform.h"
#include "gfxTeeSurface.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include <algorithm>
#if CAIRO_HAS_DWRITE_FONT

Просмотреть файл

@ -46,7 +46,7 @@
#include "harfbuzz/hb.h"
#include "nsCRT.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include <algorithm>

Просмотреть файл

@ -10,7 +10,7 @@
#include "nsRegion.h"
#include "yuv_convert.h"
#include "ycbcr_to_rgb565.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#ifdef XP_WIN
#include "gfxWindowsPlatform.h"

Просмотреть файл

@ -8,7 +8,7 @@
#include "nsIServiceManager.h"
#include "nsIConsoleService.h"
#include "nsIScriptError.h"
#include "GeckoProfiler.h"
#include "sampler.h"
namespace mozilla {
namespace image {

Просмотреть файл

@ -36,7 +36,7 @@
#include "mozilla/ClearOnShutdown.h"
#include "mozilla/gfx/Scale.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include <algorithm>
using namespace mozilla;

Просмотреть файл

@ -17,7 +17,7 @@
static bool gDisableOptimize = false;
#include "cairo.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "mozilla/Likely.h"
#if defined(XP_WIN)

Просмотреть файл

@ -33,7 +33,7 @@
#include "mozilla/Attributes.h"
#include "AccessCheck.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsJSPrincipals.h"
#include <algorithm>

Просмотреть файл

@ -24,7 +24,7 @@
#include "nsSVGIntegrationUtils.h"
#include "mozilla/Preferences.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "mozilla/gfx/Tools.h"
#include "nsAnimationManager.h"

Просмотреть файл

@ -11,7 +11,7 @@
#include "RestyleTracker.h"
#include "nsCSSFrameConstructor.h"
#include "nsStyleChangeList.h"
#include "GeckoProfiler.h"
#include "sampler.h"
namespace mozilla {
namespace css {

Просмотреть файл

@ -125,7 +125,7 @@
#include "nsRefreshDriver.h"
#include "nsRuleProcessorData.h"
#include "GeckoProfiler.h"
#include "sampler.h"
using namespace mozilla;
using namespace mozilla::dom;

Просмотреть файл

@ -50,7 +50,7 @@
#include "nsSVGEffects.h"
#include "nsSVGIntegrationUtils.h"
#include "gfxDrawable.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsCSSRenderingBorders.h"
#include "mozilla/css/ImageLoader.h"
#include "ImageContainer.h"

Просмотреть файл

@ -25,7 +25,7 @@
#include "nsLayoutUtils.h"
#include "nsINameSpaceManager.h"
#include "nsBlockFrame.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsExpirationTracker.h"
#include "RoundedRect.h"

Просмотреть файл

@ -43,7 +43,7 @@
#include "nsSVGEffects.h"
#include "nsSVGElement.h"
#include "nsSVGClipPathFrame.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsAnimationManager.h"
#include "nsTransitionManager.h"
#include "nsViewManager.h"

Просмотреть файл

@ -63,7 +63,7 @@
#include "nsFrameManager.h"
#include "nsRuleProcessorData.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#ifdef ACCESSIBILITY
#include "nsAccessibilityService.h"

Просмотреть файл

@ -88,7 +88,7 @@
#include "nsXULPopupManager.h"
#endif
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsAnimationManager.h"
#include "nsTransitionManager.h"
#include "nsViewportInfo.h"

Просмотреть файл

@ -175,7 +175,7 @@
#include "mozilla/Preferences.h"
#include "mozilla/Telemetry.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "mozilla/css/ImageLoader.h"
#include "Layers.h"

Просмотреть файл

@ -40,7 +40,7 @@
#include "nsContentUtils.h"
#include "mozilla/Preferences.h"
#include "nsViewManager.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsNPAPIPluginInstance.h"
using mozilla::TimeStamp;

Просмотреть файл

@ -67,7 +67,7 @@
#include "nsIObserverService.h"
#include "nsIScrollableFrame.h"
#include "mozilla/Preferences.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include <algorithm>
// headers for plugin scriptability

Просмотреть файл

@ -79,7 +79,7 @@
#include "mozilla/dom/Element.h"
#include "mozilla/LookAndFeel.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#ifdef DEBUG
#undef NOISY_BLINK

Просмотреть файл

@ -17,7 +17,7 @@
#include "FrameLayerBuilder.h"
#include "nsSubDocumentFrame.h"
#include "nsAbsoluteContainingBlock.h"
#include "GeckoProfiler.h"
#include "sampler.h"
using namespace mozilla;

Просмотреть файл

@ -20,7 +20,7 @@
#include "nsRuleNode.h"
#include "nsStyleContext.h"
#include "nsStyleAnimation.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#ifdef DEBUG
// #define NOISY_DEBUG

Просмотреть файл

@ -29,7 +29,7 @@
#include "nsEventStates.h"
#include "nsStyleSheetService.h"
#include "mozilla/dom/Element.h"
#include "GeckoProfiler.h"
#include "sampler.h"
using namespace mozilla;
using namespace mozilla::dom;

Просмотреть файл

@ -15,7 +15,7 @@
#include "nsThreadUtils.h"
#include "nsCOMPtr.h"
#include "prlog.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include <algorithm>
static NS_DEFINE_CID(kStreamTransportServiceCID, NS_STREAMTRANSPORTSERVICE_CID);

Просмотреть файл

@ -7,7 +7,7 @@
#include "nsIInputStream.h"
#include "nsIChannel.h"
#include "nsError.h"
#include "GeckoProfiler.h"
#include "sampler.h"
nsStreamLoader::nsStreamLoader()
: mData(nullptr),

Просмотреть файл

@ -29,7 +29,7 @@
#include "mozilla/TimeStamp.h"
#include "nsError.h"
#include "nsAlgorithm.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsIConsoleService.h"
#include "base/compiler_specific.h"
#include "NullHttpTransaction.h"

Просмотреть файл

@ -28,7 +28,7 @@
#include "nsHtml5TreeBuilder.h"
#include "nsHtml5StreamParser.h"
#include "mozilla/css/Loader.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsIScriptError.h"
#include "nsIScriptContext.h"
#include "mozilla/Preferences.h"

Просмотреть файл

@ -35,7 +35,7 @@
#include "SQLCollations.h"
#include "FileSystemModule.h"
#include "mozStorageHelper.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "prlog.h"
#include "prprf.h"

Просмотреть файл

@ -23,7 +23,7 @@
#include "mozStorageStatementParams.h"
#include "mozStorageStatementRow.h"
#include "mozStorageStatement.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "prlog.h"

Просмотреть файл

@ -18,7 +18,7 @@
#include "nsVariant.h"
#include "mozilla/storage.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsNetCID.h"

Просмотреть файл

@ -18,7 +18,7 @@
#include "mozilla/storage.h"
#include "mozilla/Util.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#define BOOKMARKS_TO_KEYWORDS_INITIAL_CACHE_SIZE 64
#define RECENT_BOOKMARKS_INITIAL_CACHE_SIZE 10

Просмотреть файл

@ -23,7 +23,7 @@ mozilla_StartupTimeline_Event(FIRST_LOAD_URI, "firstLoadURI")
#include "prtime.h"
#include "nscore.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#ifdef MOZ_LINKER
extern "C" {

Просмотреть файл

@ -25,7 +25,7 @@
#include "nsAutoPtr.h"
#include "nsStringGlue.h"
#include "mozilla/Preferences.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "prprf.h"
#include "nsCRT.h"

Просмотреть файл

@ -48,7 +48,7 @@
* it took for the event to be serviced.
*/
#include "GeckoProfiler.h"
#include "sampler.h"
#include "EventTracer.h"
@ -121,7 +121,7 @@ void TracerThread(void *arg)
while (!sExit) {
TimeStamp start(TimeStamp::Now());
profiler_responsiveness(start);
SAMPLER_RESPONSIVENESS(start);
PRIntervalTime next_sleep = interval;
//TODO: only wait up to a maximum of interval; return

Просмотреть файл

@ -2758,7 +2758,7 @@ static DWORD InitDwriteBG(LPVOID lpdwThreadParam)
bool fire_glxtest_process();
#endif
#include "GeckoProfiler.h"
#include "sampler.h"
// Encapsulates startup and shutdown state for XRE_main
class XREMain

Просмотреть файл

@ -74,7 +74,7 @@
#include "mozilla/ipc/TestShellParent.h"
#include "mozilla/ipc/XPCShellEnvironment.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#ifdef MOZ_IPDL_TESTS
#include "mozilla/_ipdltest/IPDLUnitTests.h"

Просмотреть файл

@ -14,11 +14,11 @@ XPCSHELL_TESTS = tests
include $(DEPTH)/config/autoconf.mk
EXPORTS = GeckoProfiler.h
EXPORTS = sampler.h
ifdef MOZ_ENABLE_PROFILER_SPS
EXPORTS += \
GeckoProfilerImpl.h \
sps_sampler.h \
shared-libraries.h \
$(NULL)

Просмотреть файл

@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <iostream>
#include "GeckoProfilerImpl.h"
#include "sps_sampler.h"
#include "platform.h"
#include "nsThreadUtils.h"

Просмотреть файл

@ -6,7 +6,6 @@
#ifndef MOZ_PROFILE_ENTRY_H
#define MOZ_PROFILE_ENTRY_H
#include "GeckoProfilerImpl.h"
#include "mozilla/Mutex.h"
class ThreadProfile2;

Просмотреть файл

@ -7,7 +7,7 @@
#include <stdio.h>
#include <fstream>
#include <sstream>
#include "GeckoProfilerImpl.h"
#include "sps_sampler.h"
#include "platform.h"
#include "nsXULAppAPI.h"
#include "nsThreadUtils.h"

Просмотреть файл

@ -16,7 +16,7 @@
// Profiler
#include "PlatformMacros.h"
#include "GeckoProfilerImpl.h"
#include "sps_sampler.h"
#include "platform.h"
#include "nsXULAppAPI.h"
#include "nsThreadUtils.h"
@ -45,7 +45,7 @@
// JS
#include "jsdbgapi.h"
// This file's exports are listed in GeckoProfilerImpl.h.
// This file's exports are listed in sps_sampler.h.
// Pseudo backtraces are available on all platforms. Native
// backtraces are available only on selected platforms. Breakpad is
@ -961,7 +961,7 @@ bool mozilla_sampler_is_active2()
static double sResponsivenessTimes[100];
static unsigned int sResponsivenessLoc = 0;
void mozilla_sampler_responsiveness2(const TimeStamp& aTime)
void mozilla_sampler_responsiveness2(TimeStamp aTime)
{
if (!sLastTracerEvent.IsNull()) {
if (sResponsivenessLoc == 100) {

Просмотреть файл

@ -25,6 +25,7 @@
#include "mozilla/StandardInteger.h"
#include "PlatformMacros.h"
#include "sps_sampler.h"
#include "platform.h"
#include <iostream>
@ -66,7 +67,7 @@
//////////////////////////////////////////////////////////
//// BEGIN externally visible functions (WINDOWS STUBS)
// On Windows this will all need reworking. GeckoProfilerImpl.h
// On Windows this will all need reworking. sps_sampler.h
// will ensure these functions are never actually called,
// so just provide no-op stubs for now.

Просмотреть файл

@ -6,7 +6,7 @@
#ifndef MOZ_UNWINDER_THREAD_2_H
#define MOZ_UNWINDER_THREAD_2_H
#include "GeckoProfilerImpl.h"
#include "sps_sampler.h"
#include "ProfileEntry2.h"
/* Top level exports of UnwinderThread.cpp. */

Просмотреть файл

@ -8,7 +8,7 @@
#ifdef MOZ_INSTRUMENT_EVENT_LOOP
#include "EventTracer.h"
#endif
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsProfiler.h"
#include "nsMemory.h"
#include "nsString.h"

Просмотреть файл

@ -59,7 +59,7 @@
#include <errno.h>
#include <stdarg.h>
#include "platform.h"
#include "GeckoProfilerImpl.h"
#include "sps_sampler.h"
#include <string.h>
#include <stdio.h>

Просмотреть файл

@ -137,7 +137,7 @@ static inline void profiler_unlock() {}
#else
#include "GeckoProfilerImpl.h"
#include "sps_sampler.h"
#endif

Просмотреть файл

@ -64,8 +64,8 @@ void mozilla_sampler_stop2();
bool mozilla_sampler_is_active1();
bool mozilla_sampler_is_active2();
void mozilla_sampler_responsiveness1(const TimeStamp& time);
void mozilla_sampler_responsiveness2(const TimeStamp& time);
void mozilla_sampler_responsiveness1(TimeStamp time);
void mozilla_sampler_responsiveness2(TimeStamp time);
void mozilla_sampler_frame_number1(int frameNumber);
void mozilla_sampler_frame_number2(int frameNumber);

Просмотреть файл

@ -22,7 +22,7 @@
#include "nsPresContext.h"
#include "nsEventStateManager.h"
#include "mozilla/StartupTimeline.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsRefreshDriver.h"
#include "mozilla/Preferences.h"
#include "nsContentUtils.h"

Просмотреть файл

@ -39,7 +39,7 @@
#include "mozilla/dom/ScreenOrientation.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#ifdef MOZ_ANDROID_HISTORY
#include "nsNetUtil.h"
#include "IHistory.h"

Просмотреть файл

@ -32,7 +32,7 @@
#include "nsToolkit.h"
#include "TextInputHandler.h"
#include "mozilla/HangMonitor.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include "npapi.h"

Просмотреть файл

@ -64,7 +64,7 @@
#include <ApplicationServices/ApplicationServices.h>
#include "GeckoProfiler.h"
#include "sampler.h"
#include "nsIDOMWheelEvent.h"

Просмотреть файл

@ -50,7 +50,7 @@
#include "libui/InputReader.h"
#include "libui/InputDispatcher.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#define LOG(args...) \
__android_log_print(ANDROID_LOG_INFO, "Gonk" , ## args)

Просмотреть файл

@ -126,7 +126,7 @@
#include "nsMemoryInfoDumper.h"
#include "xpcpublic.h"
#include "nsXPCOMPrivate.h"
#include "GeckoProfiler.h"
#include "sampler.h"
#include <stdio.h>
#include <string.h>
#ifdef WIN32

Просмотреть файл

@ -122,7 +122,7 @@ extern nsresult nsStringInputStreamConstructor(nsISupports *, REFNSIID, void **)
#include "mozilla/VisualEventTracer.h"
#include "GeckoProfiler.h"
#include "sampler.h"
using base::AtExitManager;
using mozilla::ipc::BrowserProcessSubThread;

Просмотреть файл

@ -10,7 +10,7 @@
#include "nsThreadManager.h"
#include "nsThreadUtils.h"
#include "plarena.h"
#include "GeckoProfiler.h"
#include "sampler.h"
using mozilla::TimeDuration;
using mozilla::TimeStamp;