2012-05-29 08:52:43 -07:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2011-11-04 14:07:50 -07:00
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2012-09-05 06:45:28 -07:00
|
|
|
[scriptable, uuid(c94651cf-082f-45e2-9481-33a1a700b46a)]
|
2011-11-04 14:07:50 -07:00
|
|
|
interface nsIProfiler : nsISupports
|
|
|
|
{
|
2012-08-22 08:56:38 -07:00
|
|
|
void StartProfiler(in uint32_t aEntries, in uint32_t aInterval,
|
2012-01-12 10:33:32 -08:00
|
|
|
[array, size_is(aFeatureCount)] in string aFeatures,
|
2012-08-22 08:56:38 -07:00
|
|
|
in uint32_t aFeatureCount);
|
2011-11-04 14:07:50 -07:00
|
|
|
void StopProfiler();
|
2012-09-05 06:45:28 -07:00
|
|
|
void AddMarker(in string aMarker);
|
2011-12-07 11:48:15 -08:00
|
|
|
string GetProfile();
|
2012-02-02 13:57:20 -08:00
|
|
|
[implicit_jscontext]
|
|
|
|
jsval getProfileData();
|
2011-12-07 11:48:15 -08:00
|
|
|
boolean IsActive();
|
2012-08-22 08:56:38 -07:00
|
|
|
void GetResponsivenessTimes(out uint32_t aCount, [retval, array, size_is(aCount)] out double aResult);
|
|
|
|
void GetFeatures(out uint32_t aCount, [retval, array, size_is(aCount)] out string aFeatures);
|
2012-03-09 07:20:00 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a JSON string of an array of shared library objects.
|
|
|
|
* Every object has three properties: start, end, and name.
|
|
|
|
* start and end are integers describing the address range that the library
|
|
|
|
* occupies in memory. name is the path of the library as a string.
|
2012-03-12 04:07:05 -07:00
|
|
|
*
|
|
|
|
* On Windows profiling builds, the shared library objects will have
|
|
|
|
* additional pdbSignature and pdbAge properties for uniquely identifying
|
|
|
|
* shared library versions for stack symbolication.
|
2012-03-09 07:20:00 -08:00
|
|
|
*/
|
|
|
|
AString getSharedLibraryInformation();
|
2011-11-04 14:07:50 -07:00
|
|
|
};
|
|
|
|
|