summaryrefslogtreecommitdiffstats
path: root/src/uscxml/debug/Benchmark.h
diff options
context:
space:
mode:
authorStefan Radomski <github@mintwerk.de>2017-07-05 08:05:55 (GMT)
committerStefan Radomski <github@mintwerk.de>2017-07-05 08:05:55 (GMT)
commitbfefa5fd44b9ed1491612f26b099db8ad624247b (patch)
treeca4313ced9adb3288056c3e7ddf121e614cf3c2b /src/uscxml/debug/Benchmark.h
parent04121c58222c95b1d808a1556b5110832a1c1119 (diff)
downloaduscxml-bfefa5fd44b9ed1491612f26b099db8ad624247b.zip
uscxml-bfefa5fd44b9ed1491612f26b099db8ad624247b.tar.gz
uscxml-bfefa5fd44b9ed1491612f26b099db8ad624247b.tar.bz2
More performant Monitors
Breaks InterpreterMonitor API, Interpreter argument is substituted by sessionId. Use Intererpreter::fromSessionId to retrieve actual session when required.
Diffstat (limited to 'src/uscxml/debug/Benchmark.h')
-rw-r--r--src/uscxml/debug/Benchmark.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/uscxml/debug/Benchmark.h b/src/uscxml/debug/Benchmark.h
index 82ef583..6548ff8 100644
--- a/src/uscxml/debug/Benchmark.h
+++ b/src/uscxml/debug/Benchmark.h
@@ -34,12 +34,12 @@ class USCXML_API Benchmark {
public:
Benchmark(const std::string& domain);
~Benchmark();
-
- static std::ostream& report(std::ostream& stream);
+
+ static std::ostream& report(std::ostream& stream);
protected:
- std::string domain;
- std::chrono::time_point<std::chrono::system_clock> started;
-
+ std::string domain;
+ std::chrono::time_point<std::chrono::system_clock> started;
+
static std::map<std::string, size_t> benchmarks;
static std::mutex benchMutex;
};