LeviLamina
Loading...
Searching...
No Matches
CodeBuilderPerformance.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
8// clang-format on
9
11public:
12 // CodeBuilderPerformance inner types define
13 enum class Stage : int {
14 CacheCodescreenStart = 0,
15 CacheCodescreenFinish = 1,
16 WebviewLoadStart = 2,
17 WebviewLoadFinish = 3,
18 CreateNewProject = 4,
19 ProjectLoadStart = 5,
20 ProjectLoadFinish = 6,
21 TutorialLoadStart = 7,
22 TutorialLoadFinish = 8,
23 EditorContentLoaded = 9,
24 LoadBlockly = 10,
25 BlocksContentLoaded = 11,
26 NetworkRequest = 12,
27 DomLoaded = 13,
28 CodeRunStart = 14,
29 CodeRunComplete = 15,
30 FirstCommandSent = 16,
31 FirstCommandReceived = 17,
32 FirstUserVisibleResult = 18,
33 };
34
35 enum class Flags : int {
36 FirstWorldLaunch = 0,
37 FirstSessionLaunch = 1,
38 CodeScreenCached = 2,
39 TutorialCached = 3,
40 Count = 4,
41 };
42
43public:
44 // static functions
45 // NOLINTBEGIN
47 ::CodeBuilderPerformance::Stage stage,
48 ::std::string const& codeProjectId,
49 uint64 tutorialSize,
50 uint64 downloadSize,
51 ::IMinecraftEventing* eventing,
52 ::std::chrono::milliseconds duration
53 );
54
55 MCNAPI static ::std::chrono::milliseconds getElapsedTime(::CodeBuilderPerformance::Stage stage);
56
57 MCNAPI static ::std::string toString(::CodeBuilderPerformance::Stage stage);
58
59 MCNAPI static void updateLastTimestamp();
60 // NOLINTEND
61
62public:
63 // static variables
64 // NOLINTBEGIN
65 MCNAPI static ::std::optional<::std::chrono::steady_clock::time_point>& mCacheCodeScreenTimeStart();
66
67 MCNAPI static ::std::string& mCodeBuilderSessionId();
68
69 MCNAPI static ::std::optional<::std::chrono::steady_clock::time_point>& mCodeRunStart();
70
71 MCNAPI static ::std::optional<::std::chrono::steady_clock::time_point>& mCreateNewProjectTimeStart();
72
73 MCNAPI static ::std::string& mEditorName();
74
75 MCNAPI static ::std::bitset<4>& mFlags();
76
77 MCNAPI static ::std::optional<::std::chrono::steady_clock::time_point>& mLastTimestamp();
78
79 MCNAPI static ::std::optional<::std::chrono::steady_clock::time_point>& mProjectLoadTimeStart();
80
81 MCNAPI static ::std::optional<::std::chrono::steady_clock::time_point>& mTutorialLoadTimeStart();
82
83 MCNAPI static ::std::optional<::std::chrono::steady_clock::time_point>& mWebviewLoadTimeStart();
84 // NOLINTEND
85};
Definition CodeBuilderPerformance.h:10
static MCAPI ::std::optional<::std::chrono::steady_clock::time_point > & mWebviewLoadTimeStart()
static MCAPI void fireCodeBuilderLoadPerformanceEvent(::CodeBuilderPerformance::Stage stage, ::std::string const &codeProjectId, uint64 tutorialSize, uint64 downloadSize, ::IMinecraftEventing *eventing, ::std::chrono::milliseconds duration)
static MCAPI ::std::optional<::std::chrono::steady_clock::time_point > & mProjectLoadTimeStart()
static MCAPI ::std::optional<::std::chrono::steady_clock::time_point > & mCodeRunStart()
static MCAPI ::std::string & mCodeBuilderSessionId()
static MCAPI ::std::optional<::std::chrono::steady_clock::time_point > & mTutorialLoadTimeStart()
static MCAPI ::std::optional<::std::chrono::steady_clock::time_point > & mLastTimestamp()
static MCAPI ::std::optional<::std::chrono::steady_clock::time_point > & mCreateNewProjectTimeStart()
static MCAPI ::std::chrono::milliseconds getElapsedTime(::CodeBuilderPerformance::Stage stage)
static MCAPI ::std::string toString(::CodeBuilderPerformance::Stage stage)
static MCAPI void updateLastTimestamp()
static MCAPI ::std::string & mEditorName()
static MCAPI ::std::bitset< 4 > & mFlags()
static MCAPI ::std::optional<::std::chrono::steady_clock::time_point > & mCacheCodeScreenTimeStart()
Definition IMinecraftEventing.h:145