forked from mirror/OpenTTD
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.
This commit is contained in:
committed by
GitHub
parent
f88ac83408
commit
c8779fb311
@@ -489,6 +489,16 @@ TownScopeResolver *IndustriesResolverObject::GetTown()
|
||||
return this->town_scope;
|
||||
}
|
||||
|
||||
GrfSpecFeature IndustriesResolverObject::GetFeature() const
|
||||
{
|
||||
return GSF_INDUSTRIES;
|
||||
}
|
||||
|
||||
uint32 IndustriesResolverObject::GetDebugID() const
|
||||
{
|
||||
return GetIndustrySpec(this->industries_scope.type)->grf_prop.local_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform an industry callback.
|
||||
* @param callback The callback to perform.
|
||||
|
Reference in New Issue
Block a user