Mercurial > hg > svgui
changeset 1610:bd1a7c84da8c
Profiling point
author | Chris Cannam |
---|---|
date | Thu, 14 May 2020 16:38:09 +0100 |
parents | 705d1d979ae4 |
children | a6e37c28d762 |
files | widgets/CommandHistory.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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