author Gregory Szorc <>
Thu, 28 Feb 2013 12:56:40 +0100
changeset 134481 614fb1e40f6cfb10344d5d0ea6e76032cf2db017
parent 125655 973a98b6265fa585833ecef11404105a1236b110
child 147742 090ebbb90a7fe87fe4b0b8da1ad2942784c585b5
permissions -rw-r--r--
Bug 784841 - Part 20: Fixes to support building external projects; r=glandium This is extremely hacky. It will likely need many refinements as we figure out how we want external projects to be handled.

/* -*- 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(c94651cf-082f-45e2-9481-33a1a700b46a)]
interface nsIProfiler : nsISupports
  void StartProfiler(in uint32_t aEntries, in uint32_t aInterval,
                      [array, size_is(aFeatureCount)] in string aFeatures,
                      in uint32_t aFeatureCount);
  void StopProfiler();
  void AddMarker(in string aMarker);
  string GetProfile();
  jsval getProfileData();
  boolean IsActive();
  void GetResponsivenessTimes(out uint32_t aCount, [retval, array, size_is(aCount)] out double aResult);
  void GetFeatures(out uint32_t 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();