MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / exec

Method exec

source/src/scriptinterpreter.cpp:1887–1910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1885 return resMonitorStart();
1886 }
1887};
1888struct QiFunc_perf_stop : public QiFunc
1889{
1890 QiFunc_perf_stop() : QiFunc(0) {}
1891 QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override
1892 {
1893 return resMonitorStop();
1894 }
1895};
1896struct QiFunc_perf_cpu_usage : public QiFunc
1897{
1898 QiFunc_perf_cpu_usage() : QiFunc(0) {}
1899 QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override
1900 {
1901 return std::to_string(static_cast<long long>(resMonitor.cpuUsage())) + "%";
1902 }
1903};
1904struct QiFunc_perf_cpu_clock : public QiFunc
1905{
1906 QiFunc_perf_cpu_clock() : QiFunc(0) {}
1907 QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override
1908 {
1909 return ResMonitor::toString(resMonitor.cpuClock() / 1000.0, 1) + "Ghz";
1910 }
1911};
1912struct QiFunc_perf_cpu_base_clock : public QiFunc
1913{

Callers

nothing calls this directly

Calls 11

BeginMessageClass · 0.85
toIntegerMethod · 0.80
DataMethod · 0.80
IpEndpointNameClass · 0.50
toStringMethod · 0.45
sizeMethod · 0.45
typeMethod · 0.45
toBoolMethod · 0.45
toNumberMethod · 0.45
SendMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected