Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #include "nsISupports.idl" |
michael@0 | 7 | |
michael@0 | 8 | [scriptable, uuid(d64e01e1-603f-4478-bb9e-47d502f23f7b)] |
michael@0 | 9 | interface nsIProfiler : nsISupports |
michael@0 | 10 | { |
michael@0 | 11 | void StartProfiler(in uint32_t aEntries, in double aInterval, |
michael@0 | 12 | [array, size_is(aFeatureCount)] in string aFeatures, |
michael@0 | 13 | in uint32_t aFeatureCount, |
michael@0 | 14 | [array, size_is(aFilterCount), optional] in string aThreadNameFilters, |
michael@0 | 15 | [optional] in uint32_t aFilterCount); |
michael@0 | 16 | void StopProfiler(); |
michael@0 | 17 | boolean IsPaused(); |
michael@0 | 18 | void PauseSampling(); |
michael@0 | 19 | void ResumeSampling(); |
michael@0 | 20 | void AddMarker(in string aMarker); |
michael@0 | 21 | string GetProfile(); |
michael@0 | 22 | [implicit_jscontext] |
michael@0 | 23 | jsval getProfileData(); |
michael@0 | 24 | boolean IsActive(); |
michael@0 | 25 | void GetResponsivenessTimes(out uint32_t aCount, [retval, array, size_is(aCount)] out double aResult); |
michael@0 | 26 | void GetFeatures(out uint32_t aCount, [retval, array, size_is(aCount)] out string aFeatures); |
michael@0 | 27 | |
michael@0 | 28 | /** |
michael@0 | 29 | * Returns a JSON string of an array of shared library objects. |
michael@0 | 30 | * Every object has three properties: start, end, and name. |
michael@0 | 31 | * start and end are integers describing the address range that the library |
michael@0 | 32 | * occupies in memory. name is the path of the library as a string. |
michael@0 | 33 | * |
michael@0 | 34 | * On Windows profiling builds, the shared library objects will have |
michael@0 | 35 | * additional pdbSignature and pdbAge properties for uniquely identifying |
michael@0 | 36 | * shared library versions for stack symbolication. |
michael@0 | 37 | */ |
michael@0 | 38 | AString getSharedLibraryInformation(); |
michael@0 | 39 | }; |
michael@0 | 40 |