mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add plot type "power" and Watt format.
Note that this technically breaks backwards compatibility of trace files for 0.9.2 builds. But, whatever, as it's not yet released.
This commit is contained in:
@@ -6698,8 +6698,8 @@ void Worker::ProcessSysPower( const QueueSysPower& ev )
|
||||
CheckString( ev.name );
|
||||
PlotData* plot = m_slab.AllocInit<PlotData>();
|
||||
plot->name = ev.name;
|
||||
plot->type = PlotType::User;
|
||||
plot->format = PlotValueFormatting::Number;
|
||||
plot->type = PlotType::Power;
|
||||
plot->format = PlotValueFormatting::Watt;
|
||||
plot->showSteps = false;
|
||||
plot->fill = true;
|
||||
plot->color = 0;
|
||||
|
||||
Reference in New Issue
Block a user