DebugProfileRegistry class
Methods
-
clear()
→ void
-
Clears all profiles and resets index.
-
getProfileByIndex(int index)
→ DebugProfile
-
Safely get profile by index (throws if invalid)
-
initialize({List<DebugProfile>? initialProfiles, int profileIndex = 0, bool clearExisting = false})
→ void
-
Optional one-time initialization.
Call this early (e.g. in main) if you want to seed profiles.
Calling initialize more than once will append profiles unless you pass clearExisting:true.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
register(DebugProfile profile)
→ void
-
Register a single profile at runtime.
-
toString()
→ String
-
A string representation of this object.
inherited