diff options
author | Håvard Pettersen <havardpe@oath.com> | 2022-01-25 13:58:18 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2022-01-26 12:18:18 +0000 |
commit | 895b7150fccfbaa5ebeb225399bfef0d7052174b (patch) | |
tree | 717dcb7fe56d4eb6cde88d76da49909a2dfa2cbd /eval | |
parent | 1ecbb8ced4c2599155a2438625987b78e174bd5a (diff) |
tag match/summary engines with READ cpu usage
tag llvm compilation tasks with SETUP cpu usage
Diffstat (limited to 'eval')
-rw-r--r-- | eval/src/vespa/eval/eval/llvm/compile_cache.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/eval/src/vespa/eval/eval/llvm/compile_cache.cpp b/eval/src/vespa/eval/eval/llvm/compile_cache.cpp index 43ed724e010..9d0e921c502 100644 --- a/eval/src/vespa/eval/eval/llvm/compile_cache.cpp +++ b/eval/src/vespa/eval/eval/llvm/compile_cache.cpp @@ -2,6 +2,7 @@ #include "compile_cache.h" #include <vespa/eval/eval/key_gen.h> +#include <vespa/vespalib/util/cpu_usage.h> #include <thread> namespace vespalib::eval { @@ -64,6 +65,7 @@ CompileCache::compile(const Function &function, PassParams pass_params) assert(res.second); token = std::make_unique<Token>(res.first, Token::ctor_tag()); task = std::make_unique<CompileTask>(function, pass_params, res.first->second.result); + task = CpuUsage::wrap(std::move(task), CpuUsage::Category::SETUP); if (!_executor_stack.empty()) { executor = _executor_stack.back().second; } |