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

TracyUserData.hpp « server - github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4c945a8236cb215ab80a9f1112cdbb8a4708ad6b (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
#ifndef __TRACYUSERDATA_HPP__
#define __TRACYUSERDATA_HPP__

#include <stdint.h>
#include <string>

namespace tracy
{

class UserData
{
public:
    UserData();
    UserData( const char* program, uint64_t time );

    bool Valid() const { return !m_program.empty(); }
    void Init( const char* program, uint64_t time );

    const std::string& GetDescription() const { return m_description; }
    bool SetDescription( const char* description );

private:
    std::string m_program;
    uint64_t m_time;

    std::string m_description;
};

}

#endif