Bug 773428 - Part 2: Expose AddMarker via IDL. r=ehsan

--HG--
extra : rebase_source : 208a4569f5a9e2895400ed244483d4e160b36f48
This commit is contained in:
Benoit Girard 2012-09-05 09:45:28 -04:00
parent 75c5e10ece
commit aa1466040b
2 changed files with 9 additions and 1 deletions

View File

@ -5,13 +5,14 @@
#include "nsISupports.idl"
[scriptable, uuid(e388fded-1321-41af-a988-861a2bc5cfc3)]
[scriptable, uuid(c94651cf-082f-45e2-9481-33a1a700b46a)]
interface nsIProfiler : nsISupports
{
void StartProfiler(in uint32_t aEntries, in uint32_t aInterval,
[array, size_is(aFeatureCount)] in string aFeatures,
in uint32_t aFeatureCount);
void StopProfiler();
void AddMarker(in string aMarker);
string GetProfile();
[implicit_jscontext]
jsval getProfileData();

View File

@ -43,6 +43,13 @@ nsProfiler::StopProfiler()
return NS_OK;
}
NS_IMETHODIMP
nsProfiler::AddMarker(const char *aMarker)
{
SAMPLE_MARKER(aMarker);
return NS_OK;
}
NS_IMETHODIMP
nsProfiler::GetProfile(char **aProfile)
{