{
WebInspector.Object.call(this);
this._dispatcher = new WebInspector.PowerDispatcher(this);
+ PowerAgent.getAccuracyLevel(this._onAccuracyLevel.bind(this));
}
WebInspector.PowerProfiler.EventTypes = {
PowerAgent.end();
},
+ /**
+ * @return {string}
+ */
+ getAccuracyLevel: function()
+ {
+ return this._accuracyLevel;
+ },
+
+ _onAccuracyLevel: function(error, result) {
+ this._accuracyLevel = "";
+ if (error) {
+ console.log("Unable to retrieve PowerProfiler accuracy level: " + error);
+ return;
+ }
+ this._accuracyLevel = result;
+ },
+
__proto__: WebInspector.Object.prototype
}