author James Willcox <>
Wed, 06 Jun 2012 22:39:01 -0400
changeset 98745 21ff29da4c41c86bc573d31a983557688c6d13f3
parent 97576 466d337a1996ec990488c6bf89c78a715d3b109a
child 100265 746513dca667ec109c627f0a5b38726dd014001d
permissions -rw-r--r--
Bug 759799 - Hook up Hal WakeLocks on Android r=blassey

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */
#include "nsISupports.idl"

[scriptable, uuid(e388fded-1321-41af-a988-861a2bc5cfc3)]
interface nsIProfiler : nsISupports
  void StartProfiler(in PRUint32 aInterval, in PRUint32 aEntries,
                      [array, size_is(aFeatureCount)] in string aFeatures,
                      in PRUint32 aFeatureCount);
  void StopProfiler();
  string GetProfile();
  jsval getProfileData();
  boolean IsActive();
  void GetResponsivenessTimes(out PRUint32 aCount, [retval, array, size_is(aCount)] out double aResult);
  void GetFeatures(out PRUint32 aCount, [retval, array, size_is(aCount)] out string aFeatures);

   * Returns a JSON string of an array of shared library objects.
   * Every object has three properties: start, end, and name.
   * start and end are integers describing the address range that the library
   * occupies in memory. name is the path of the library as a string.
   * On Windows profiling builds, the shared library objects will have
   * additional pdbSignature and pdbAge properties for uniquely identifying
   * shared library versions for stack symbolication.
  AString getSharedLibraryInformation();