mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 773428 - Part 2: Expose AddMarker via IDL. r=ehsan
--HG-- extra : rebase_source : 208a4569f5a9e2895400ed244483d4e160b36f48
This commit is contained in:
parent
75c5e10ece
commit
aa1466040b
@ -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();
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user