Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-09-03 20:18:01 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-09-03 20:18:01 +0300
commite19a3a8767cb54218fdf528279a804299213e801 (patch)
tree4441b5d5d452678bf4463e3419a09e6416186d6c /server/TracyTimelineItemPlot.cpp
parent450fbf5ea0485ffe6b8d9d1437b031ab670254db (diff)
Implement check for empty plot.
Diffstat (limited to 'server/TracyTimelineItemPlot.cpp')
-rw-r--r--server/TracyTimelineItemPlot.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/TracyTimelineItemPlot.cpp b/server/TracyTimelineItemPlot.cpp
index 83c8920f..6d306779 100644
--- a/server/TracyTimelineItemPlot.cpp
+++ b/server/TracyTimelineItemPlot.cpp
@@ -14,6 +14,11 @@ TimelineItemPlot::TimelineItemPlot( View& view, Worker& worker, PlotData* plot )
{
}
+bool TimelineItemPlot::IsEmpty() const
+{
+ return m_plot->data.empty();
+}
+
const char* TimelineItemPlot::HeaderLabel() const
{
static char tmp[1024];