Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
373b8ffb
Unverified
Commit
373b8ffb
authored
Feb 12, 2026
by
Yongming Ding
Committed by
GitHub
Feb 12, 2026
Browse files
feat(mocker): enable KV cache trace for decode workers (#6207)
Signed-off-by:
Yongming Ding
<
yongmingd@nvidia.com
>
parent
5ff88b33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
lib/mocker/src/kv_manager.rs
lib/mocker/src/kv_manager.rs
+7
-10
No files found.
lib/mocker/src/kv_manager.rs
View file @
373b8ffb
...
@@ -119,10 +119,6 @@ impl KvManager {
...
@@ -119,10 +119,6 @@ impl KvManager {
return
;
return
;
}
}
let
Some
(
ref
sink
)
=
self
.kv_event_sink
else
{
return
;
};
if
*
KV_CACHE_TRACE_ENABLED
{
if
*
KV_CACHE_TRACE_ENABLED
{
let
timestamp_ms
=
SystemTime
::
now
()
let
timestamp_ms
=
SystemTime
::
now
()
.duration_since
(
UNIX_EPOCH
)
.duration_since
(
UNIX_EPOCH
)
...
@@ -149,6 +145,10 @@ impl KvManager {
...
@@ -149,6 +145,10 @@ impl KvManager {
);
);
}
}
let
Some
(
ref
sink
)
=
self
.kv_event_sink
else
{
return
;
};
let
event_data
=
if
is_store
{
let
event_data
=
if
is_store
{
let
num_blocks
=
full_blocks
.len
();
let
num_blocks
=
full_blocks
.len
();
let
local_hashes_slice
=
&
local_hashes
[
local_hashes
let
local_hashes_slice
=
&
local_hashes
[
local_hashes
...
@@ -236,9 +236,8 @@ impl KvManager {
...
@@ -236,9 +236,8 @@ impl KvManager {
// Now insert the new block in active blocks with reference count 1
// Now insert the new block in active blocks with reference count 1
self
.active_blocks
.insert
(
hash
.clone
(),
1
);
self
.active_blocks
.insert
(
hash
.clone
(),
1
);
if
self
.kv_event_sink
.is_some
()
// Track blocks for trace/event
&&
let
UniqueBlock
::
FullBlock
(
stored_full_block
)
=
hash
if
let
UniqueBlock
::
FullBlock
(
stored_full_block
)
=
hash
{
{
blocks_stored
.push
(
*
stored_full_block
);
blocks_stored
.push
(
*
stored_full_block
);
}
}
}
}
...
@@ -259,9 +258,7 @@ impl KvManager {
...
@@ -259,9 +258,7 @@ impl KvManager {
self
.active_blocks
.remove
(
hash
)
.unwrap
();
self
.active_blocks
.remove
(
hash
)
.unwrap
();
// Track blocks for batch sending
// Track blocks for batch sending
if
self
.kv_event_sink
.is_some
()
if
let
UniqueBlock
::
FullBlock
(
destroyed_full_block
)
=
hash
{
&&
let
UniqueBlock
::
FullBlock
(
destroyed_full_block
)
=
hash
{
blocks_destroyed
.push
(
*
destroyed_full_block
);
blocks_destroyed
.push
(
*
destroyed_full_block
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment