2015-01-13 17:38:05 -08:00
|
|
|
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*-*/
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* 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 http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
#include "nsIArray.idl"
|
|
|
|
|
2015-02-26 17:55:37 -08:00
|
|
|
[scriptable, uuid(13dd4c09-ff11-4943-8dc2-d96eb69c963b)]
|
2015-01-13 17:38:05 -08:00
|
|
|
interface nsICompartment : nsISupports {
|
|
|
|
/* name of compartment */
|
|
|
|
readonly attribute AString compartmentName;
|
2015-02-26 17:55:37 -08:00
|
|
|
/* time spent executing code in this compartment in microseconds */
|
|
|
|
readonly attribute unsigned long long time;
|
2015-01-13 17:38:05 -08:00
|
|
|
/* the id of the addon associated with this compartment, or null */
|
|
|
|
readonly attribute AString addonId;
|
2015-02-26 17:55:37 -08:00
|
|
|
/* time spent processing CPOWs in microseconds */
|
2015-01-13 17:38:05 -08:00
|
|
|
readonly attribute unsigned long long CPOWTime;
|
|
|
|
};
|
|
|
|
|
|
|
|
[scriptable, builtinclass, uuid(5795113a-39a1-4087-ba09-98b7d07d025a)]
|
|
|
|
interface nsICompartmentInfo : nsISupports {
|
|
|
|
nsIArray getCompartments();
|
|
|
|
};
|
|
|
|
|
|
|
|
%{C++
|
|
|
|
#define NS_COMPARTMENT_INFO_CID \
|
|
|
|
{ 0x2d3c2f2d, 0x698d, 0x471d, \
|
|
|
|
{ 0xba, 0x3e, 0x14, 0x44, 0xdd, 0x52, 0x1e, 0x29 } }
|
|
|
|
%}
|