mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Save/load annotations.
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
#ifndef __TRACYUSERDATA_HPP__
|
||||
#define __TRACYUSERDATA_HPP__
|
||||
|
||||
#include <memory>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace tracy
|
||||
{
|
||||
|
||||
struct Annotation;
|
||||
struct ViewData;
|
||||
|
||||
class UserData
|
||||
@@ -26,6 +29,9 @@ public:
|
||||
void SaveState( const ViewData& data );
|
||||
void StateShouldBePreserved();
|
||||
|
||||
void LoadAnnotations( std::vector<std::unique_ptr<Annotation>>& data );
|
||||
void SaveAnnotations( const std::vector<std::unique_ptr<Annotation>>& data );
|
||||
|
||||
private:
|
||||
FILE* OpenFile( const char* filename, bool write );
|
||||
void Remove( const char* filename );
|
||||
|
||||
Reference in New Issue
Block a user