MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / toPython

Function toPython

Source/Falcor/Utils/Timing/Profiler.cpp:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47const size_t kMaxHistorySize = 512;
48
49pybind11::dict toPython(const Profiler::Stats& stats)
50{
51 pybind11::dict d;
52 d["min"] = stats.min;
53 d["max"] = stats.max;
54 d["mean"] = stats.mean;
55 d["std_dev"] = stats.stdDev;
56 return d;
57}
58
59pybind11::dict toPython(const Profiler::Capture& capture)
60{

Callers 2

toJsonStringMethod · 0.70
FALCOR_SCRIPT_BINDINGFunction · 0.70

Calls 8

getFrameCountMethod · 0.80
getCpuTimeMethod · 0.80
getCpuTimeAverageMethod · 0.80
computeCpuTimeStatsMethod · 0.80
getGpuTimeMethod · 0.80
getGpuTimeAverageMethod · 0.80
computeGpuTimeStatsMethod · 0.80
getNameMethod · 0.45

Tested by

no test coverage detected