Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix VS2019 compile errors #64

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions microprofile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7309,7 +7309,7 @@ void MicroProfileContextSwitchShutdownTrace()

EVENT_TRACE_LOGFILE log;
ZeroMemory(&log, sizeof(log));
log.LoggerName = KERNEL_LOGGER_NAME;
log.LoggerName = (LPSTR)KERNEL_LOGGER_NAME;
log.ProcessTraceMode = 0;
TRACEHANDLE hLog = OpenTrace(&log);
if (hLog)
Expand Down Expand Up @@ -7354,7 +7354,7 @@ bool MicroProfileStartWin32Trace(EventCallback EvtCb, BufferCallback BufferCB)
EVENT_TRACE_LOGFILE log;
ZeroMemory(&log, sizeof(log));

log.LoggerName = KERNEL_LOGGER_NAME;
log.LoggerName = (LPSTR)KERNEL_LOGGER_NAME;
log.ProcessTraceMode = PROCESS_TRACE_MODE_REAL_TIME | PROCESS_TRACE_MODE_RAW_TIMESTAMP;
log.EventCallback = EvtCb;
log.BufferCallback = BufferCB;
Expand Down Expand Up @@ -11383,6 +11383,8 @@ BOOL MicroProfileQueryContextEnumSymbols (
};


bool MicroProfileSymInit();
void MicroProfileSymCleanup();

template<typename Callback>
void MicroProfileIterateSymbols(Callback CB, uint32_t* nModules, uint32_t nNumModules)
Expand Down