Feature: NewGRF callback profiling (#7868)
commitc8779fb311c2665d3fc45c18b2f3460cd998d179
authorNiels Martin Hansen <nielsm@indvikleren.dk>
Sun, 26 Jan 2020 12:45:51 +0000 (26 13:45 +0100)
committerGitHub <noreply@github.com>
Sun, 26 Jan 2020 12:45:51 +0000 (26 13:45 +0100)
tree15321da1e265a40fce50700182b218a87494d24a
parentf88ac83408bff58022699b4d9488818d509ef974
Feature: NewGRF callback profiling (#7868)

Adds a console command newgrf_profile to collect some profiling data about NewGRF action 2 callbacks and produce a CSV file.
40 files changed:
docs/logging_and_performance_metrics.md
projects/openttd_vs140.vcxproj
projects/openttd_vs140.vcxproj.filters
projects/openttd_vs141.vcxproj
projects/openttd_vs141.vcxproj.filters
projects/openttd_vs142.vcxproj
projects/openttd_vs142.vcxproj.filters
source.list
src/console_cmds.cpp
src/date.cpp
src/misc.cpp
src/newgrf.cpp
src/newgrf_airport.cpp
src/newgrf_airporttiles.cpp
src/newgrf_airporttiles.h
src/newgrf_canal.cpp
src/newgrf_cargo.cpp
src/newgrf_engine.cpp
src/newgrf_engine.h
src/newgrf_generic.cpp
src/newgrf_house.cpp
src/newgrf_house.h
src/newgrf_industries.cpp
src/newgrf_industries.h
src/newgrf_industrytiles.cpp
src/newgrf_industrytiles.h
src/newgrf_object.cpp
src/newgrf_object.h
src/newgrf_profiling.cpp [new file with mode: 0644]
src/newgrf_profiling.h [new file with mode: 0644]
src/newgrf_railtype.cpp
src/newgrf_railtype.h
src/newgrf_roadtype.cpp
src/newgrf_roadtype.h
src/newgrf_spritegroup.cpp
src/newgrf_spritegroup.h
src/newgrf_station.cpp
src/newgrf_station.h
src/spritecache.cpp
src/spritecache.h