Use a proper Breakdown timing group instead of the unwieldy INCLUDED_BY_OTHER_TIMINGS_PREFIX

This commit is contained in:
Dylan K. Taylor
2023-04-05 20:47:47 +01:00
parent 8ef2780dcd
commit b2f755720d
3 changed files with 64 additions and 55 deletions

View File

@ -139,7 +139,7 @@ abstract class Command{
public function setLabel(string $name) : bool{
$this->nextLabel = $name;
if(!$this->isRegistered()){
$this->timings = new TimingsHandler(Timings::INCLUDED_BY_OTHER_TIMINGS_PREFIX . "Command: " . $name);
$this->timings = new TimingsHandler("Command: " . $name, group: Timings::GROUP_BREAKDOWN);
$this->label = $name;
return true;