2016-01-10 19:56:40 -05:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
2016-02-13 22:19:42 -05:00
|
|
|
|
|
|
|
class DisassemblyInfo;
|
|
|
|
struct DebugState;
|
2016-01-10 19:56:40 -05:00
|
|
|
|
|
|
|
struct TraceLoggerOptions
|
|
|
|
{
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class TraceLogger
|
|
|
|
{
|
|
|
|
private:
|
2016-02-13 22:19:42 -05:00
|
|
|
static TraceLogger *_instance;
|
2016-01-10 19:56:40 -05:00
|
|
|
TraceLoggerOptions _options;
|
|
|
|
string _outputFilepath;
|
|
|
|
ofstream _outputFile;
|
2016-06-01 21:01:04 -04:00
|
|
|
bool _firstLine;
|
2016-01-10 19:56:40 -05:00
|
|
|
|
|
|
|
public:
|
|
|
|
TraceLogger(string outputFilepath, TraceLoggerOptions options);
|
|
|
|
~TraceLogger();
|
|
|
|
|
|
|
|
void Log(DebugState &state, shared_ptr<DisassemblyInfo> disassemblyInfo);
|
2016-02-13 22:19:42 -05:00
|
|
|
|
|
|
|
static void LogStatic(string log);
|
2016-01-10 19:56:40 -05:00
|
|
|
};
|