{
function formatMilliseconds(time)
{
- return Number.secondsToString(time / 1000, !Preferences.samplingCPUProfiler);
+ return Number.secondsToString(time / 1000, !Capabilities.samplingCPUProfiler);
}
var data = {};
data["function"] = this.functionName;
data["calls"] = this.numberOfCalls;
- if (this.profileView.showSelfTimeAsPercent)
+ if (this.profileView.showSelfTimeAsPercent.get())
data["self"] = WebInspector.UIString("%.2f%%", this.selfPercent);
else
data["self"] = formatMilliseconds(this.selfTime);
- if (this.profileView.showTotalTimeAsPercent)
+ if (this.profileView.showTotalTimeAsPercent.get())
data["total"] = WebInspector.UIString("%.2f%%", this.totalPercent);
else
data["total"] = formatMilliseconds(this.totalTime);
- if (this.profileView.showAverageTimeAsPercent)
+ if (this.profileView.showAverageTimeAsPercent.get())
data["average"] = WebInspector.UIString("%.2f%%", this.averagePercent);
else
data["average"] = formatMilliseconds(this.averageTime);