Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
DebuggerStatCollector.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7
8// auto generated forward declare list
9// clang-format off
12class DebuggerStat;
13// clang-format on
14
15class DebuggerStatCollector {
16public:
17 // member variables
18 // NOLINTBEGIN
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 DebuggerStatCollector& operator=(DebuggerStatCollector const&);
39 DebuggerStatCollector(DebuggerStatCollector const&);
40 DebuggerStatCollector();
41
42public:
43 // member functions
44 // NOLINTBEGIN
45 MCNAPI DebuggerStatCollector(::DebuggerStatCollector&& other);
46
48 ::std::string_view rootName,
49 uint64 updateFrequency,
50 ::std::function<void(::DebuggerStat&)> collectFn
51 );
52
54 ::std::string_view rootName,
56 uint64 updateFrequency,
57 ::std::function<void(::DebuggerStat&)> collectFn
58 );
59
61 ::std::string_view rootName,
63 uint64 updateFrequency,
64 ::std::function<void(::DebuggerStat&, uint64, uint64, uint64)> collectFn,
65 ::std::function<void()> enableFn,
66 ::std::function<void()> disableFn,
67 ::std::function<void(bool)> reloadFn
68 );
69
70 MCNAPI void _unregisterCollector();
71
72 MCNAPI ::DebuggerStatCollector& addView(::DebuggerDiagnosticsView descriptor);
73
75
76 MCNAPI void tick(uint64 currentTick, ::std::vector<::DebuggerStat>& statsOut);
77
79 // NOLINTEND
80
81public:
82 // static functions
83 // NOLINTBEGIN
84 MCNAPI static ::DebuggerStatCollector constructWithTickData(
85 ::std::string_view rootName,
86 uint64 updateFrequency,
87 ::std::function<void(::DebuggerStat&, uint64, uint64, uint64)> collectFn,
88 ::std::function<void()> enableFn,
89 ::std::function<void()> disableFn,
90 ::std::function<void(bool)> reloadFn
91 );
92
93 MCNAPI static ::DebuggerStatCollector constructWithTickData(
94 ::std::string_view rootName,
96 uint64 updateFrequency,
97 ::std::function<void(::DebuggerStat&, uint64, uint64, uint64)> collectFn,
98 ::std::function<void()> enableFn,
99 ::std::function<void()> disableFn,
100 ::std::function<void(bool)> reloadFn
101 );
102 // NOLINTEND
103
104public:
105 // constructor thunks
106 // NOLINTBEGIN
107 MCNAPI void* $ctor(::DebuggerStatCollector&& other);
108
109 MCNAPI void*
110 $ctor(::std::string_view rootName, uint64 updateFrequency, ::std::function<void(::DebuggerStat&)> collectFn);
111
112 MCNAPI void* $ctor(
113 ::std::string_view rootName,
115 uint64 updateFrequency,
116 ::std::function<void(::DebuggerStat&)> collectFn
117 );
118
119 MCNAPI void* $ctor(
120 ::std::string_view rootName,
122 uint64 updateFrequency,
123 ::std::function<void(::DebuggerStat&, uint64, uint64, uint64)> collectFn,
124 ::std::function<void()> enableFn,
125 ::std::function<void()> disableFn,
126 ::std::function<void(bool)> reloadFn
127 );
128 // NOLINTEND
129
130public:
131 // destructor thunk
132 // NOLINTBEGIN
133 MCNAPI void $dtor();
134 // NOLINTEND
135};
Definition NonOwnerPointer.h:9
Definition DebuggerDiagnosticsView.h:10
Definition DebuggerDiagnostics.h:14
MCAPI void * $ctor(::std::string_view rootName, ::Bedrock::NonOwnerPointer<::DebuggerDiagnostics > diagnostics, uint64 updateFrequency, ::std::function< void(::DebuggerStat &, uint64, uint64, uint64)> collectFn, ::std::function< void()> enableFn, ::std::function< void()> disableFn, ::std::function< void(bool)> reloadFn)
MCAPI void _unregisterCollector()
MCAPI DebuggerStatCollector(::std::string_view rootName, uint64 updateFrequency, ::std::function< void(::DebuggerStat &)> collectFn)
MCAPI void * $ctor(::std::string_view rootName, ::Bedrock::NonOwnerPointer<::DebuggerDiagnostics > diagnostics, uint64 updateFrequency, ::std::function< void(::DebuggerStat &)> collectFn)
MCAPI void tick(uint64 currentTick, ::std::vector<::DebuggerStat > &statsOut)
MCAPI DebuggerStatCollector(::std::string_view rootName, ::Bedrock::NonOwnerPointer<::DebuggerDiagnostics > diagnostics, uint64 updateFrequency, ::std::function< void(::DebuggerStat &, uint64, uint64, uint64)> collectFn, ::std::function< void()> enableFn, ::std::function< void()> disableFn, ::std::function< void(bool)> reloadFn)
MCAPI DebuggerStatCollector(::std::string_view rootName, ::Bedrock::NonOwnerPointer<::DebuggerDiagnostics > diagnostics, uint64 updateFrequency, ::std::function< void(::DebuggerStat &)> collectFn)
MCAPI void registerCollector(::Bedrock::NonOwnerPointer<::DebuggerDiagnostics > diagnostics)
MCAPI::DebuggerStatCollector & addView(::DebuggerDiagnosticsView descriptor)
static MCAPI ::DebuggerStatCollector constructWithTickData(::std::string_view rootName, ::Bedrock::NonOwnerPointer<::DebuggerDiagnostics > diagnostics, uint64 updateFrequency, ::std::function< void(::DebuggerStat &, uint64, uint64, uint64)> collectFn, ::std::function< void()> enableFn, ::std::function< void()> disableFn, ::std::function< void(bool)> reloadFn)
MCAPI DebuggerStatCollector(::DebuggerStatCollector &&other)
MCAPI void * $ctor(::DebuggerStatCollector &&other)
MCAPI void * $ctor(::std::string_view rootName, uint64 updateFrequency, ::std::function< void(::DebuggerStat &)> collectFn)
static MCAPI ::DebuggerStatCollector constructWithTickData(::std::string_view rootName, uint64 updateFrequency, ::std::function< void(::DebuggerStat &, uint64, uint64, uint64)> collectFn, ::std::function< void()> enableFn, ::std::function< void()> disableFn, ::std::function< void(bool)> reloadFn)
MCAPI ~DebuggerStatCollector()
Definition DebuggerStat.h:10
Definition Alias.h:14