LeviLamina
Loading...
Searching...
No Matches
CrashDumpLog.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
12namespace Bedrock::Threading { class Mutex; }
13// clang-format on
14
16public:
17 // static functions
18 // NOLINTBEGIN
19 MCNAPI static void crashDumpLogThreadRoutine();
20
21 MCNAPI static void logEvent(::CrashDumpEventData const& eventData);
22
23 MCNAPI static void logFrame(::CrashDumpFrameData const& frameData);
24
25 MCNAPI static void logKeyValue(::CrashDumpKeyValueData const& keyValueData);
26
27#ifdef LL_PLAT_C
28 MCNAPI static void logRenderCall(::CrashDumpRenderData const& renderData);
29#endif
30
31 MCNAPI static void setAssertMessage(char const* desc, int line, char const* file, char const* function);
32
33 MCNAPI static void setBehaviorPackIds(::std::vector<::std::string> const& packIds);
34
35 MCNAPI static bool setDeviceID(::std::string const& str);
36
37 MCNAPI static bool setDeviceSessionID(::std::string const& str);
38
39#ifdef LL_PLAT_C
40 MCNAPI static void setEditorWorld(bool editorWorld);
41#endif
42
43 MCNAPI static void setGameVersion(char const* gameVersion);
44
45#ifdef LL_PLAT_C
46 MCNAPI static void setGraphicsMode(short graphicsMode);
47
48 MCNAPI static void setMainSceneStack(::std::vector<::std::string> const& sceneNames);
49#endif
50
51 MCNAPI static void setPlatform(char const* platformString);
52
53#ifdef LL_PLAT_C
54 MCNAPI static void setPlayerSceneStack(int playerIndex, ::std::vector<::std::string> const& sceneNames);
55
56 MCNAPI static void setResourcePackIds(::std::vector<::std::string> const& packIds);
57#endif
58
59 MCNAPI static void setTotalMemory(uint64 memory);
60
61#ifdef LL_PLAT_C
62 MCNAPI static void setWorldSeed(int seed);
63#endif
64
65 MCNAPI static bool startCrashDumpLogThread();
66
67 MCNAPI static void stopCrashDumpLogThread();
68 // NOLINTEND
69
70public:
71 // static variables
72 // NOLINTBEGIN
73 MCNAPI static ::CrashDump_AllData*& mAllData();
74
75 MCNAPI static ::Bedrock::Threading::Mutex& mAssertDataMutex();
76
77 MCNAPI static ::std::unique_ptr<::std::thread>& mCrashDumpLog_logThread();
78
79 MCNAPI static ::Bedrock::Threading::Mutex& mCrashDumpThreadMutex();
80
81 MCNAPI static ::std::condition_variable& mCrashDumpThreadMutexCV();
82
83 MCNAPI static ::Bedrock::Threading::Mutex& mEventDataMutex();
84
85 MCNAPI static ::Bedrock::Threading::Mutex& mFrameDataMutex();
86
87 MCNAPI static ::Bedrock::Threading::Mutex& mGameplayDataMutex();
88
89 MCNAPI static ::Bedrock::Threading::Mutex& mGlobalDataMutex();
90
91 MCNAPI static bool& mIsThreadRunning();
92
93 MCNAPI static ::Bedrock::Threading::Mutex& mKeyValueDataMutex();
94
95 MCNAPI static ::Bedrock::Threading::Mutex& mPlayerDataMutex();
96
97 MCNAPI static ::Bedrock::Threading::Mutex& mRenderDataMutex();
98 // NOLINTEND
99};
Definition Mutex.h:10
Definition CrashDumpLog.h:15
static MCAPI bool & mIsThreadRunning()
static MCAPI ::Bedrock::Threading::Mutex & mGlobalDataMutex()
static MCAPI void setBehaviorPackIds(::std::vector<::std::string > const &packIds)
static MCAPI bool setDeviceSessionID(::std::string const &str)
static MCAPI ::Bedrock::Threading::Mutex & mFrameDataMutex()
static MCAPI ::Bedrock::Threading::Mutex & mGameplayDataMutex()
static MCAPI void setGameVersion(char const *gameVersion)
static MCAPI ::std::unique_ptr<::std::thread > & mCrashDumpLog_logThread()
static MCAPI ::std::condition_variable & mCrashDumpThreadMutexCV()
static MCAPI ::Bedrock::Threading::Mutex & mEventDataMutex()
static MCAPI void stopCrashDumpLogThread()
static MCAPI bool setDeviceID(::std::string const &str)
static MCAPI ::Bedrock::Threading::Mutex & mCrashDumpThreadMutex()
static MCAPI void setAssertMessage(char const *desc, int line, char const *file, char const *function)
static MCAPI bool startCrashDumpLogThread()
static MCAPI void crashDumpLogThreadRoutine()
static MCAPI void logEvent(::CrashDumpEventData const &eventData)
static MCAPI void setTotalMemory(uint64 memory)
static MCAPI void logFrame(::CrashDumpFrameData const &frameData)
static MCAPI void logKeyValue(::CrashDumpKeyValueData const &keyValueData)
static MCAPI void setPlatform(char const *platformString)
static MCAPI ::Bedrock::Threading::Mutex & mKeyValueDataMutex()
static MCAPI ::CrashDump_AllData *& mAllData()
static MCAPI ::Bedrock::Threading::Mutex & mPlayerDataMutex()
static MCAPI ::Bedrock::Threading::Mutex & mRenderDataMutex()
static MCAPI ::Bedrock::Threading::Mutex & mAssertDataMutex()
Definition CrashDumpEventData.h:13
Definition CrashDumpFrameData.h:10
Definition CrashDumpKeyValueData.h:13
Definition CrashDumpRenderData.h:13
Definition CrashDump_AllData.h:5