Zeex/profiler — Issue #3: Bad public color on *.gv
Author: grekon
Created: 2012-02-04 10:35:04+00:00
State: open

Sometimes we hava lines like this: "OnFilterScriptInit" [color="nan, nan, 1", shape=octagon];
Something wrong here:
auto time = node->info()->GetSelfTime();
auto ratio = static_cast(time) / static_cast(max_time);
// We encode color in HSB.
auto hsb = std::make_tuple(
(1.0 - ratio) * 0.6, // hue
(ratio * 0.9) + 0.1, // saturation
1.0 // brightness
);