Skip to content

Commit

Permalink
better chunk debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisj committed Jul 11, 2024
1 parent 2d1834c commit 9e0e220
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chunk_manager/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ export class ChunkQueueManager extends SharedObjectCounterpart {
}
if (DEBUG_CHUNK_UPDATES) {
console.log(
`${chunk}: changed priority ${chunk.priorityTier}:` +
`${chunk.toString()}: changed priority ${chunk.priorityTier}:` +
`${chunk.priority} -> ${chunk.newPriorityTier}:${chunk.newPriority}`,
);
}
Expand All @@ -880,7 +880,7 @@ export class ChunkQueueManager extends SharedObjectCounterpart {
}
if (DEBUG_CHUNK_UPDATES) {
console.log(
`${chunk}: changed state ${ChunkState[chunk.state]} -> ${
`${chunk.toString()}: changed state ${ChunkState[chunk.state]} -> ${
ChunkState[newState]
}`,
);
Expand Down
4 changes: 4 additions & 0 deletions src/sliceview/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,10 @@ export class SliceViewChunkSourceBackend<
}
return chunk;
}

toString() {
return (this as any).parameters.url;
}
}

@registerSharedObject(SLICEVIEW_RENDERLAYER_RPC_ID)
Expand Down

0 comments on commit 9e0e220

Please sign in to comment.