Skip to content

Commit

Permalink
Update components/profile/trace-dump.js to 6f7906
Browse files Browse the repository at this point in the history
This updates the trace-dump.js file to
fitzgen/servo-trace-dump@6f79066:

> 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.
  • Loading branch information
fitzgen committed Mar 31, 2017
1 parent 82b0d5a commit 35f9427
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions components/profile/trace-dump.js
Expand Up @@ -244,11 +244,6 @@ Make sure to upstream changes, or they will get lost!
return increment;
};

// Get the category name for the given trace.
const traceCategory = exports.traceCategory = trace => {
return Object.keys(trace.category)[0];
};

/*** Window Specific Code ***************************************************/

if (!window) {
Expand Down Expand Up @@ -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.marginLeft = state.nsToSelectionPx(trace.startTime - state.startSelection) + "px";

let category = traceCategory(trace);
let category = trace.category;
inner.textContent = category;
inner.style.backgroundColor = state.getColorForCategory(category);

Expand Down

0 comments on commit 35f9427

Please sign in to comment.