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;
Interface for SpriteGroup-s to access the gamestate.
~NewGRFProfiler()
Complete profiling session and write data to file.
Measurement of a single sprite group resolution.
Call cur_call
Data for current call in progress.
std::vector< Call > calls
All calls collected so far.
Callbacks that NewGRFs could implement.
void EndResolve(const SpriteGroup *result)
Capture the completion of a sprite group resolution.
uint32 item
Local ID of item being resolved for.
GrfSpecFeature feat
GRF feature being resolved for.
void RecursiveResolve()
Capture a recursive sprite group resolution.
uint32 subs
Sub-calls to other sprite groups.
Definition of base types and functions in a cross-platform compatible way.
uint32 result
Result of callback.
void BeginResolve(const ResolverObject &resolver)
Capture the start of a sprite group resolution.
Callback profiler for NewGRF development.
const GRFFile * grffile
Which GRF is being profiled.
uint16 start_tick
Tick number this profiler was started on.
std::string GetOutputFilename() const
Get name of the file that will be written.
NewGRFProfiler(const GRFFile *grffile)
Create profiler object and begin profiling session.
uint32 time
Time taken for resolution (microseconds)
bool active
Is this profiler collecting data.
Types related to the dates in OpenTTD.
int32 Date
The type to store our dates in.
CallbackID
List of implemented NewGRF callbacks.
CallbackID cb
Callback ID.
uint32 root_sprite
Pseudo-sprite index in GRF file.
Dynamic data of a loaded NewGRF.
Base for the NewGRF implementation.