Skip to content
Snippets Groups Projects
Commit 65ec762d authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #5892: Expose running statistics to caller

parent 7e0470ce
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,9 @@ namespace LOFAR
void enqueue(const BlockID &blockId);
// Warning: user has to make sure the Kernel is not running!
RunningStatistics getStats() { return itsCounter.getStats(); }
protected:
// Construct a kernel.
Kernel(const gpu::Stream& stream,
......
......@@ -38,6 +38,9 @@ namespace LOFAR
void recordStart(const gpu::Stream &stream);
void recordStop(const gpu::Stream &stream);
// Warning: user must make sure that the counter is not running!
RunningStatistics getStats() { logTime(); return stats; }
private:
const std::string name;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment