30 struct CrashProcessorInfo {
40 CrashProcessorInfo& operator=(CrashProcessorInfo
const&);
41 CrashProcessorInfo(CrashProcessorInfo
const&);
45 struct CrashedSessionInfo {
56 CrashedSessionInfo& operator=(CrashedSessionInfo
const&);
57 CrashedSessionInfo(CrashedSessionInfo
const&);
84 CrashManagerImpl& operator=(CrashManagerImpl
const&);
85 CrashManagerImpl(CrashManagerImpl
const&);
91 virtual ~CrashManagerImpl() =
default;
95 virtual void setCrashProcessorForFileType(
96 ::std::string_view fileExtension,
97 ::std::shared_ptr<::Bedrock::CrashFileProcessor> processor
101 setCrashTelemetryProcessor(::gsl::not_null<::Bedrock::CrashTelemetryProcessor*> processor) ;
103 virtual void processCrashes(
104 ::std::shared_ptr<::Bedrock::WorkerPoolHandleInterface> workerPool,
106 bool isNetworkAvailable
109 virtual void notifyCrashed() ;
111 virtual void notifySystemError(uint errorCode, ::std::string
const& errorMessage) ;
113 virtual void recordCrashedSession(
114 ::std::string_view sessionId,
115 ::std::string_view serializedSession,
119 virtual void stopProcessingCrashes() ;
121 virtual bool isCrashProcessingActive() const ;
123 virtual ::
std::
string const& getCrashDataRoot() const ;
125 virtual ::
std::
string const& getCrashedSessionFileSuffix() const ;
132 MCNAPI ::Bedrock::Threading::Async<bool>
135 MCNAPI
void _queueTask(::std::string_view name, ::std::function<
void()>&& task);
137 MCNAPI
void _resetProcessingState();
139 MCNAPI
void _scanCrashFiles();
149 MCNAPI
void $setCrashProcessorForFileType(
150 ::std::string_view fileExtension,
151 ::std::shared_ptr<::Bedrock::CrashFileProcessor> processor
154 MCNAPI
void $setCrashTelemetryProcessor(::gsl::not_null<::Bedrock::CrashTelemetryProcessor*> processor);
156 MCNAPI
void $processCrashes(
157 ::std::shared_ptr<::Bedrock::WorkerPoolHandleInterface> workerPool,
159 bool isNetworkAvailable
162 MCNAPI
void $notifyCrashed();
164 MCNAPI
void $notifySystemError(uint errorCode, ::std::string
const& errorMessage);
167 $recordCrashedSession(::std::string_view sessionId, ::std::string_view serializedSession, int64 crashTime);
169 MCNAPI
void $stopProcessingCrashes();
171 MCNAPI
bool $isCrashProcessingActive()
const;
173 MCNAPI ::std::string
const& $getCrashDataRoot()
const;
175 MCNAPI ::std::string
const& $getCrashedSessionFileSuffix()
const;