Adding of _t to (u)int types, and WChar to char32_t

See: eaae0bb5e
This commit is contained in:
Jonathan G Rennison
2024-01-07 16:41:53 +00:00
parent 55d78a23be
commit 97e6f3062e
655 changed files with 7555 additions and 7555 deletions

View File

@@ -32,31 +32,31 @@ struct NewGRFProfiler {
void RecursiveResolve();
void Start();
uint32 Finish();
uint32_t Finish();
void Abort();
std::string GetOutputFilename() const;
static void StartTimer(uint64 ticks);
static void StartTimer(uint64_t ticks);
static void AbortTimer();
static uint32 FinishAll();
static uint32_t FinishAll();
/** Measurement of a single sprite group resolution */
struct Call {
uint32 root_sprite; ///< Pseudo-sprite index in GRF file
uint32 item; ///< Local ID of item being resolved for
uint32 result; ///< Result of callback
uint32 subs; ///< Sub-calls to other sprite groups
uint32 time; ///< Time taken for resolution (microseconds)
uint64 tick; ///< Game tick
CallbackID cb; ///< Callback ID
GrfSpecFeature feat; ///< GRF feature being resolved for
uint32_t root_sprite; ///< Pseudo-sprite index in GRF file
uint32_t item; ///< Local ID of item being resolved for
uint32_t result; ///< Result of callback
uint32_t subs; ///< Sub-calls to other sprite groups
uint32_t time; ///< Time taken for resolution (microseconds)
uint64_t tick; ///< Game tick
CallbackID cb; ///< Callback ID
GrfSpecFeature feat; ///< GRF feature being resolved for
};
const GRFFile *grffile; ///< Which GRF is being profiled
bool active; ///< Is this profiler collecting data
uint64 start_tick; ///< Tick number this profiler was started on
Call cur_call; ///< Data for current call in progress
std::vector<Call> calls; ///< All calls collected so far
const GRFFile *grffile; ///< Which GRF is being profiled
bool active; ///< Is this profiler collecting data
uint64_t start_tick; ///< Tick number this profiler was started on
Call cur_call; ///< Data for current call in progress
std::vector<Call> calls; ///< All calls collected so far
};
extern std::vector<NewGRFProfiler> _newgrf_profilers;