зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1121591 - Add nsIProfiler.dumpProfileToFile. r=BenWa
This commit is contained in:
Родитель
cf6b273396
Коммит
82d5d49ba3
|
@ -12,7 +12,7 @@ class nsCString;
|
|||
|
||||
[ref] native StringArrayRef(const nsTArray<nsCString>);
|
||||
|
||||
[scriptable, uuid(f7f3709c-04a9-45c6-8e34-40f762654a78)]
|
||||
[scriptable, uuid(42d1e0e3-303a-424f-89ea-4f15c699d767)]
|
||||
interface nsIProfiler : nsISupports
|
||||
{
|
||||
void StartProfiler(in uint32_t aEntries, in double aInterval,
|
||||
|
@ -42,6 +42,11 @@ interface nsIProfiler : nsISupports
|
|||
* shared library versions for stack symbolication.
|
||||
*/
|
||||
AString getSharedLibraryInformation();
|
||||
|
||||
/**
|
||||
* Dump the collected profile to a file.
|
||||
*/
|
||||
void dumpProfileToFile(in string aFilename);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -194,6 +194,13 @@ nsProfiler::GetSharedLibraryInformation(nsAString& aOutString)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsProfiler::DumpProfileToFile(const char* aFilename)
|
||||
{
|
||||
profiler_save_profile_to_file(aFilename);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsProfiler::GetProfileData(JSContext* aCx,
|
||||
JS::MutableHandle<JS::Value> aResult)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче