tools/profiler/nsIProfiler.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tools/profiler/nsIProfiler.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 + 
     1.9 +#include "nsISupports.idl"
    1.10 +
    1.11 +[scriptable, uuid(d64e01e1-603f-4478-bb9e-47d502f23f7b)]
    1.12 +interface nsIProfiler : nsISupports
    1.13 +{
    1.14 +  void StartProfiler(in uint32_t aEntries, in double aInterval,
    1.15 +                      [array, size_is(aFeatureCount)] in string aFeatures,
    1.16 +                      in uint32_t aFeatureCount,
    1.17 +                      [array, size_is(aFilterCount), optional] in string aThreadNameFilters,
    1.18 +                      [optional] in uint32_t aFilterCount);
    1.19 +  void StopProfiler();
    1.20 +  boolean IsPaused();
    1.21 +  void PauseSampling();
    1.22 +  void ResumeSampling();
    1.23 +  void AddMarker(in string aMarker);
    1.24 +  string GetProfile();
    1.25 +  [implicit_jscontext]
    1.26 +  jsval getProfileData();
    1.27 +  boolean IsActive();
    1.28 +  void GetResponsivenessTimes(out uint32_t aCount, [retval, array, size_is(aCount)] out double aResult);
    1.29 +  void GetFeatures(out uint32_t aCount, [retval, array, size_is(aCount)] out string aFeatures);
    1.30 +
    1.31 +  /**
    1.32 +   * Returns a JSON string of an array of shared library objects.
    1.33 +   * Every object has three properties: start, end, and name.
    1.34 +   * start and end are integers describing the address range that the library
    1.35 +   * occupies in memory. name is the path of the library as a string.
    1.36 +   *
    1.37 +   * On Windows profiling builds, the shared library objects will have
    1.38 +   * additional pdbSignature and pdbAge properties for uniquely identifying
    1.39 +   * shared library versions for stack symbolication.
    1.40 +   */
    1.41 +  AString getSharedLibraryInformation();
    1.42 +};
    1.43 +

mercurial