Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
udi-speedb committed Mar 14, 2024
1 parent 2ceceb5 commit a782636
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cache/typed_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ class FullTypedCacheInterface
auto helper = lowest_used_cache_tier == CacheTier::kNonVolatileBlockTier
? GetFullHelper()
: GetBasicHelper();
printf("InsertFull:role_idx:%d, charge:%d, owner_id:%d\n", (int)(helper->role), (int)charge, (int)item_owner_id);
return this->cache_->InsertWithOwnerId(key, UpCastValue(value), helper,
charge, item_owner_id,
untyped_handle, priority);
Expand Down
2 changes: 2 additions & 0 deletions db/internal_stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,8 @@ InternalStats::CacheEntryRoleStats::GetEntryCallback() {
entry_counts[role_idx]++;
total_charges[role_idx] += charge;
auto level_category_value = item_owner_id >> 14;
item_owner_id &= ~(0xC000);
printf("GetEntryCallback:role_idx:%d, charge:%d, level-cat:%d, owner_id:%d\n", (int)role_idx, (int)charge, (int)level_category_value, (int)item_owner_id);
charge_per_item_owner[item_owner_id][role_idx][level_category_value] += charge;
};
}
Expand Down

0 comments on commit a782636

Please sign in to comment.