Improve user timing coloring
denar90 opened this issue · 3 comments
denar90 commented
Linking to GoogleChrome/lighthouse#1910
denar90 commented
Are there some ways to make changes to canvas which is drawing all timelines, so we will be able to colorize user timing?
paulirish commented
if (event.hasCategory(TimelineModel.TimelineModel.Category.Console) ||
event.hasCategory(TimelineModel.TimelineModel.Category.UserTiming))
return this._consoleColorGenerator.colorForID(event.name);
basically if we can redefine the Timeline.TimelineFlameChartDataProvider
instance's this._consoleColorGenerator.colorForID
method then we can make it color however we want (based on the event.name).
the only hard part here is finding the path to the TimelineFlameChartDataProvider instance.
or its possible we can redefine PerfUI.FlameChart.ColorGenerator
before the dataprovider instance is ever instantiated.
devtools hax. :)
denar90 commented
nice, thanks for pointing out on that stuff, now it will be much easier to make it happened)
let's do some hacking :)) 💪