Mercurial > hg > svgui
diff widgets/CommandHistory.cpp @ 1610:bd1a7c84da8c
Profiling point
author | Chris Cannam |
---|---|
date | Thu, 14 May 2020 16:38:09 +0100 |
parents | c8a6fd3f9dff |
children |
line wrap: on
line diff
--- a/widgets/CommandHistory.cpp Thu May 14 16:38:05 2020 +0100 +++ b/widgets/CommandHistory.cpp Thu May 14 16:38:09 2020 +0100 @@ -25,6 +25,7 @@ #include "CommandHistory.h" #include "base/Command.h" +#include "base/Profiler.h" #include "IconLoader.h" @@ -470,6 +471,8 @@ void CommandHistory::clearStack(CommandStack &stack) { + Profiler profiler("CommandHistory::clearStack"); + while (!stack.empty()) { Command *command = stack.top(); // Not safe to call getName() on a command about to be deleted