1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add user data storage handler.

This commit is contained in:
Bartosz Taudul
2019-07-26 23:05:24 +02:00
parent 34cc7183d0
commit 27965e8690
6 changed files with 108 additions and 0 deletions
+31
View File
@@ -0,0 +1,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