mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 9bd76ec482d2 (bug 1145824) for mochitest-other failure
This commit is contained in:
parent
e172adc276
commit
8296827703
@ -12,7 +12,7 @@ class nsCString;
|
||||
|
||||
[ref] native StringArrayRef(const nsTArray<nsCString>);
|
||||
|
||||
[scriptable, uuid(9c3c0534-ef4b-4a6e-a1a6-4522d4824ac8)]
|
||||
[scriptable, uuid(edd65f3f-c2a2-4217-a2e2-40347ba4a2b3)]
|
||||
interface nsIProfiler : nsISupports
|
||||
{
|
||||
void StartProfiler(in uint32_t aEntries, in double aInterval,
|
||||
@ -34,12 +34,6 @@ interface nsIProfiler : nsISupports
|
||||
void GetBufferInfo(out uint32_t aCurrentPosition, out uint32_t aTotalSize,
|
||||
out uint32_t aGeneration);
|
||||
|
||||
/**
|
||||
* Returns the elapsed time, in milliseconds, since the last StartProfiler call.
|
||||
* Returns 0 if there is no active sampler.
|
||||
*/
|
||||
float getElapsedTime();
|
||||
|
||||
/**
|
||||
* Returns a JSON string of an array of shared library objects.
|
||||
* Every object has three properties: start, end, and name.
|
||||
|
@ -201,9 +201,8 @@ nsProfiler::DumpProfileToFile(const char* aFilename)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsProfiler::GetProfileData(JSContext* aCx,
|
||||
JS::MutableHandle<JS::Value> aResult)
|
||||
NS_IMETHODIMP nsProfiler::GetProfileData(JSContext* aCx,
|
||||
JS::MutableHandle<JS::Value> aResult)
|
||||
{
|
||||
JS::RootedObject obj(aCx, profiler_get_profile_jsobject(aCx));
|
||||
if (!obj) {
|
||||
@ -213,13 +212,6 @@ nsProfiler::GetProfileData(JSContext* aCx,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsProfiler::GetElapsedTime(float* aElapsedTime)
|
||||
{
|
||||
*aElapsedTime = static_cast<float>(profiler_time());
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsProfiler::IsActive(bool *aIsActive)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user