Go to the documentation of this file.
10 #ifndef NEWGRF_PROFILING_H
11 #define NEWGRF_PROFILING_H
39 static uint32 FinishAll();
60 extern std::vector<NewGRFProfiler> _newgrf_profilers;
61 extern Date _newgrf_profile_end_date;
std::vector< Call > calls
All calls collected so far.
const GRFFile * grffile
Which GRF is being profiled.
Measurement of a single sprite group resolution.
Interface for SpriteGroup-s to access the gamestate.
void RecursiveResolve()
Capture a recursive sprite group resolution.
CallbackID
List of implemented NewGRF callbacks.
NewGRFProfiler(const GRFFile *grffile)
Create profiler object and begin profiling session.
void EndResolve(const SpriteGroup *result)
Capture the completion of a sprite group resolution.
void BeginResolve(const ResolverObject &resolver)
Capture the start of a sprite group resolution.
~NewGRFProfiler()
Complete profiling session and write data to file.
int32 Date
The type to store our dates in.
GrfSpecFeature feat
GRF feature being resolved for.
uint32 result
Result of callback.
uint32 item
Local ID of item being resolved for.
std::string GetOutputFilename() const
Get name of the file that will be written.
uint32 subs
Sub-calls to other sprite groups.
bool active
Is this profiler collecting data.
Call cur_call
Data for current call in progress.
Callback profiler for NewGRF development.
uint16 start_tick
Tick number this profiler was started on.
uint32 root_sprite
Pseudo-sprite index in GRF file.
uint32 time
Time taken for resolution (microseconds)
CallbackID cb
Callback ID.
Dynamic data of a loaded NewGRF.