tracy/server/TracyView.hpp
2017-09-13 02:08:35 +02:00

34 lines
413 B
C++
Executable File

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