mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Update components/profile/trace-dump.js to 6f7906
This updates the trace-dump.js file to
6f79066814
:
> commit 6f790668140d44a8641e441d3ac0e64364b8c0ca
> Author: Nick Fitzgerald <fitzgen@gmail.com>
> Date: Fri Mar 31 14:26:31 2017 -0700
>
> Update for new serde-json data format
>
> Not sure when this happened, but at some point enum variants without any tuple
> struct members became simple strings.
This commit is contained in:
parent
82b0d5ad54
commit
35f94273bb
1 changed files with 1 additions and 6 deletions
|
@ -244,11 +244,6 @@ Make sure to upstream changes, or they will get lost!
|
||||||
return increment;
|
return increment;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Get the category name for the given trace.
|
|
||||||
const traceCategory = exports.traceCategory = trace => {
|
|
||||||
return Object.keys(trace.category)[0];
|
|
||||||
};
|
|
||||||
|
|
||||||
/*** Window Specific Code ***************************************************/
|
/*** Window Specific Code ***************************************************/
|
||||||
|
|
||||||
if (!window) {
|
if (!window) {
|
||||||
|
@ -528,7 +523,7 @@ Make sure to upstream changes, or they will get lost!
|
||||||
inner.style.width = state.nsToSelectionPx(trace.endTime - trace.startTime) + "px";
|
inner.style.width = state.nsToSelectionPx(trace.endTime - trace.startTime) + "px";
|
||||||
inner.style.marginLeft = state.nsToSelectionPx(trace.startTime - state.startSelection) + "px";
|
inner.style.marginLeft = state.nsToSelectionPx(trace.startTime - state.startSelection) + "px";
|
||||||
|
|
||||||
let category = traceCategory(trace);
|
let category = trace.category;
|
||||||
inner.textContent = category;
|
inner.textContent = category;
|
||||||
inner.style.backgroundColor = state.getColorForCategory(category);
|
inner.style.backgroundColor = state.getColorForCategory(category);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue