mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Add benchmark logic
Add benchmarking measuring methods to `OS` to allow for platform specific overrides (e.g: can be used to hook into platform specific benchmarking and tracing capabilities).
This commit is contained in:
@@ -104,6 +104,9 @@ open class GodotEditor : FullScreenGodotApp() {
|
||||
if (args != null && args.isNotEmpty()) {
|
||||
commandLineParams.addAll(listOf(*args))
|
||||
}
|
||||
if (BuildConfig.BUILD_TYPE == "dev") {
|
||||
commandLineParams.add("--benchmark")
|
||||
}
|
||||
}
|
||||
|
||||
override fun getCommandLine() = commandLineParams
|
||||
|
||||
Reference in New Issue
Block a user