Reece
d7c6d66fad
[+] AuPopCnt [+] NormalizePath, GetFileFromPath, GetDirectoryFromPath, GoUpToSeparator [*] Fix Version Helpers again [*] Fix registry locale memory check under read registry in SWInfo [*] Breakout portable process code away from evil win32 code [*] .dynlib -> .dylib under macos
80 lines
1.2 KiB
C++
80 lines
1.2 KiB
C++
/***
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: Telemetry.cpp
|
|
Date: 2021-6-17
|
|
Author: Reece
|
|
***/
|
|
#include <Source/RuntimeInternal.hpp>
|
|
#include <Source/Debug/Debug.hpp>
|
|
#include "Telemetry.hpp"
|
|
|
|
|
|
namespace Aurora::Telemetry
|
|
{
|
|
static AuThreadPrimitives::CriticalSectionUnique_t gGroupLock;
|
|
|
|
void BeginBlock()
|
|
{
|
|
gGroupLock->Lock();
|
|
}
|
|
|
|
void EndBlock()
|
|
{
|
|
gGroupLock->Unlock();
|
|
}
|
|
|
|
void InsertOSError(const Debug::OSError_t &osError)
|
|
{
|
|
|
|
}
|
|
|
|
void InsertMsgError(const Debug::LastError &error)
|
|
{
|
|
|
|
}
|
|
|
|
void InsertCError(AuSInt cError)
|
|
{
|
|
|
|
}
|
|
|
|
void InsertManualFence(AuUInt32 fence)
|
|
{
|
|
|
|
}
|
|
|
|
void InsertBackTrace(AuUInt32 fence)
|
|
{
|
|
|
|
}
|
|
|
|
void Report(Telemetry::NewBlockboxEntry &entry)
|
|
{
|
|
|
|
}
|
|
|
|
void ReportDyingBreath(Telemetry::NewBlackBoxEntryMinidump &entry)
|
|
{
|
|
|
|
}
|
|
|
|
void ReportSysInfo()
|
|
{
|
|
|
|
}
|
|
|
|
void Init()
|
|
{
|
|
gGroupLock = AuThreadPrimitives::CriticalSectionUnique();
|
|
ReportSysInfo();
|
|
}
|
|
|
|
|
|
|
|
AUKN_SYM void Mayday()
|
|
{
|
|
Debug::CheckErrors();
|
|
Debug::PlatformHandleFatal(false);
|
|
}
|
|
} |