mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Add step and fill parameters to plot configuration.
This commit is contained in:
parent
810f1573ac
commit
3f51409389
@ -342,11 +342,13 @@ public:
|
|||||||
TracyLfqCommit;
|
TracyLfqCommit;
|
||||||
}
|
}
|
||||||
|
|
||||||
static tracy_force_inline void ConfigurePlot( const char* name, PlotFormatType type )
|
static tracy_force_inline void ConfigurePlot( const char* name, PlotFormatType type, bool step, bool fill )
|
||||||
{
|
{
|
||||||
TracyLfqPrepare( QueueType::PlotConfig );
|
TracyLfqPrepare( QueueType::PlotConfig );
|
||||||
MemWrite( &item->plotConfig.name, (uint64_t)name );
|
MemWrite( &item->plotConfig.name, (uint64_t)name );
|
||||||
MemWrite( &item->plotConfig.type, (uint8_t)type );
|
MemWrite( &item->plotConfig.type, (uint8_t)type );
|
||||||
|
MemWrite( &item->plotConfig.step, (uint8_t)step );
|
||||||
|
MemWrite( &item->plotConfig.fill, (uint8_t)fill );
|
||||||
|
|
||||||
#ifdef TRACY_ON_DEMAND
|
#ifdef TRACY_ON_DEMAND
|
||||||
GetProfiler().DeferItem( *item );
|
GetProfiler().DeferItem( *item );
|
||||||
|
@ -608,6 +608,8 @@ struct QueuePlotConfig
|
|||||||
{
|
{
|
||||||
uint64_t name; // ptr
|
uint64_t name; // ptr
|
||||||
uint8_t type;
|
uint8_t type;
|
||||||
|
uint8_t step;
|
||||||
|
uint8_t fill;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct QueueParamSetup
|
struct QueueParamSetup
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
#define LockableName(x,y,z);
|
#define LockableName(x,y,z);
|
||||||
|
|
||||||
#define TracyPlot(x,y)
|
#define TracyPlot(x,y)
|
||||||
#define TracyPlotConfig(x,y)
|
#define TracyPlotConfig(x,y,z,w)
|
||||||
|
|
||||||
#define TracyMessage(x,y)
|
#define TracyMessage(x,y)
|
||||||
#define TracyMessageL(x)
|
#define TracyMessageL(x)
|
||||||
@ -159,7 +159,7 @@
|
|||||||
#define LockableName( varname, txt, size ) varname.CustomName( txt, size )
|
#define LockableName( varname, txt, size ) varname.CustomName( txt, size )
|
||||||
|
|
||||||
#define TracyPlot( name, val ) tracy::Profiler::PlotData( name, val )
|
#define TracyPlot( name, val ) tracy::Profiler::PlotData( name, val )
|
||||||
#define TracyPlotConfig( name, type ) tracy::Profiler::ConfigurePlot( name, type )
|
#define TracyPlotConfig( name, type, step, fill ) tracy::Profiler::ConfigurePlot( name, type, step, fill )
|
||||||
|
|
||||||
#define TracyAppInfo( txt, size ) tracy::Profiler::MessageAppInfo( txt, size )
|
#define TracyAppInfo( txt, size ) tracy::Profiler::MessageAppInfo( txt, size )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user