MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetOutputFilename

Method GetOutputFilename

src/newgrf_profiling.cpp:152–155  ·  view source on GitHub ↗

* Get name of the file that will be written. * @return File name of profiling output file. */

Source from the content-addressed store, hash-verified

150 * @return File name of profiling output file.
151 */
152std::string NewGRFProfiler::GetOutputFilename() const
153{
154 return fmt::format("{}grfprofile-{:%Y%m%d-%H%M}-{:08X}.csv", FiosGetScreenshotDir(), fmt::localtime(time(nullptr)), std::byteswap(this->grffile->grfid));
155}
156
157/* static */ uint32_t NewGRFProfiler::FinishAll()
158{

Callers 1

FinishMethod · 0.95

Calls 4

FiosGetScreenshotDirFunction · 0.85
localtimeFunction · 0.85
byteswapFunction · 0.85
formatFunction · 0.50

Tested by

no test coverage detected