mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Check if plot data values are finite numbers.
This commit is contained in:
parent
d8cb536712
commit
de69fc9850
@ -4942,6 +4942,16 @@ void Worker::ProcessLockName( const QueueLockName& ev )
|
|||||||
|
|
||||||
void Worker::ProcessPlotData( const QueuePlotData& ev )
|
void Worker::ProcessPlotData( const QueuePlotData& ev )
|
||||||
{
|
{
|
||||||
|
switch( ev.type )
|
||||||
|
{
|
||||||
|
case PlotDataType::Double:
|
||||||
|
if( !isfinite( ev.data.d ) ) return;
|
||||||
|
break;
|
||||||
|
case PlotDataType::Float:
|
||||||
|
if( !isfinite( ev.data.f ) ) return;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
PlotData* plot = m_data.plots.Retrieve( ev.name, [this] ( uint64_t name ) {
|
PlotData* plot = m_data.plots.Retrieve( ev.name, [this] ( uint64_t name ) {
|
||||||
auto plot = m_slab.AllocInit<PlotData>();
|
auto plot = m_slab.AllocInit<PlotData>();
|
||||||
plot->name = name;
|
plot->name = name;
|
||||||
|
Loading…
Reference in New Issue
Block a user