MCPcopy Index your code
hub / github.com/garrytan/gstack / logCodexCost

Function logCodexCost

test/codex-e2e.test.ts:107–110  ·  view source on GitHub ↗

Print cost summary after a Codex E2E test.

(label: string, result: CodexResult)

Source from the content-addressed store, hash-verified

105
106/** Print cost summary after a Codex E2E test. */
107function logCodexCost(label: string, result: CodexResult) {
108 const durationSec = Math.round(result.durationMs / 1000);
109 console.log(`${label}: ${result.tokens} tokens, ${result.toolCalls.length} tool calls, ${durationSec}s`);
110}
111
112// Finalize eval results on exit
113afterAll(async () => {

Callers 1

codex-e2e.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected