1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00
tracy/server/TracyView.hpp
2017-09-13 23:40:28 +02:00

37 lines
473 B
C++
Executable File

#ifndef __TRACYVIEW_HPP__
#define __TRACYVIEW_HPP__
#include <atomic>
#include <string>
#include <thread>
namespace tracy
{
struct QueueItem;
class View
{
public:
View() : View( "127.0.0.1" ) {}
View( const char* addr );
~View();
static bool ShouldExit();
private:
void Worker();
void Process( const QueueItem& ev );
std::string m_addr;
std::thread m_thread;
std::atomic<bool> m_shutdown;
int64_t m_timeBegin;
};
}
#endif