Improve engine startup/shutdown benchmarks
- Add contexts to give a better sense of benchmarked areas. - Add missing benchmarks and adjust some begin/end points. - Clean up names. - Improve Android's internal benchmarks in a similar manner. Co-authored-by: Fredia Huya-Kouadio <fhuya@meta.com>
This commit is contained in:
parent
d5ad37afcd
commit
fc3f40f37d
19 changed files with 172 additions and 93 deletions
|
|
@ -708,15 +708,15 @@ String OS_Android::get_config_path() const {
|
|||
return get_user_data_dir().path_join("config");
|
||||
}
|
||||
|
||||
void OS_Android::benchmark_begin_measure(const String &p_what) {
|
||||
void OS_Android::benchmark_begin_measure(const String &p_context, const String &p_what) {
|
||||
#ifdef TOOLS_ENABLED
|
||||
godot_java->begin_benchmark_measure(p_what);
|
||||
godot_java->begin_benchmark_measure(p_context, p_what);
|
||||
#endif
|
||||
}
|
||||
|
||||
void OS_Android::benchmark_end_measure(const String &p_what) {
|
||||
void OS_Android::benchmark_end_measure(const String &p_context, const String &p_what) {
|
||||
#ifdef TOOLS_ENABLED
|
||||
godot_java->end_benchmark_measure(p_what);
|
||||
godot_java->end_benchmark_measure(p_context, p_what);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue