Skip to content

Commit

Permalink
Log JS interpreter creation, for metrics tracking (#6305)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyashton authored Jul 4, 2024
1 parent 967a83e commit 8ce7b79
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/js/interpreter_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,12 @@ namespace ccf::js
auto it = lru.find(key);
if (it == lru.end())
{
LOG_TRACE_FMT(
"Inserting new interpreter into cache, with key {}", key);
it = lru.insert(key, make_interpreter(access));
LOG_INFO_FMT(
"Constructed cached JS interpreter at key {}. Cache now "
"contains {} interpreters",
key,
lru.size());
}
else
{
Expand Down

0 comments on commit 8ce7b79

Please sign in to comment.