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

TracyTimelineItemCpuData.hpp « server - github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 642ba52cf28a941c592a08e514dedf8878bea183 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef __TRACYTIMELINEITEMCPUDATA_HPP__
#define __TRACYTIMELINEITEMCPUDATA_HPP__

#include "TracyEvent.hpp"
#include "TracyTimelineItem.hpp"

namespace tracy
{

class TimelineItemCpuData final : public TimelineItem
{
public:
    TimelineItemCpuData( View& view, Worker& worker, void* );

    void SetVisible( bool visible ) override;
    bool IsVisible() const override;

protected:
    uint32_t HeaderColor() const override { return 0xFFDD88DD; }
    uint32_t HeaderColorInactive() const override { return 0xFF6E446E; }
    uint32_t HeaderLineColor() const override { return 0x66DD88DD; }
    const char* HeaderLabel() const override { return "CPU data"; }

    int64_t RangeBegin() const override;
    int64_t RangeEnd() const override;

    bool DrawContents( double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax ) override;

    bool IsEmpty() const override;
};

}

#endif