mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
feat: Add /xlprofiler command (#1662)
Make it easier for end users to open the profiler to pull load time reports.
This commit is contained in:
parent
4b601f15c7
commit
0bb69cbd5f
1 changed files with 12 additions and 0 deletions
|
|
@ -141,6 +141,13 @@ internal class DalamudCommands : IServiceType
|
|||
"Toggle Dalamud UI display modes. Native UI modifications may also be affected by this, but that depends on the plugin."),
|
||||
});
|
||||
|
||||
commandManager.AddHandler("/xlprofiler", new CommandInfo(this.OnOpenProfilerCommand)
|
||||
{
|
||||
HelpMessage = Loc.Localize(
|
||||
"DalamudProfilerHelp",
|
||||
"Open Dalamud's startup timing profiler."),
|
||||
});
|
||||
|
||||
commandManager.AddHandler("/imdebug", new CommandInfo(this.OnDebugImInfoCommand)
|
||||
{
|
||||
HelpMessage = "ImGui DEBUG",
|
||||
|
|
@ -409,4 +416,9 @@ internal class DalamudCommands : IServiceType
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void OnOpenProfilerCommand(string command, string arguments)
|
||||
{
|
||||
Service<DalamudInterface>.Get().ToggleProfilerWindow();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue