refactored CommandExecutionMetric