Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Work-Fisher/code-claw
/ record
Method
record
claw-code/src/cost_tracker.py:11–13 ·
view source on GitHub ↗
(self, label: str, units: int)
Source
from the content-addressed store, hash-verified
9
events: list[str] = field(default_factory=list)
10
11
def
record(self, label: str, units: int) -> None:
12
self.total_units += units
13
self.events.append(f
'{label}:{units}'
)
Callers
1
apply_cost_hook
Function · 0.45
Calls
1
append
Method · 0.80
Tested by
no test coverage detected