Add finer-grained logging and timers for statediffing. #313

Merged
telackey merged 4 commits from telackey/sdlog into v1.10.26-statediff-v4 2023-02-06 22:51:43 +00:00
Contributor

Example output:

DEBUG[02-04|06:08:18.098] statediff createdAndUpdatedStateWithIntermediateNodes duration=0ms hash=0x6bb96a91fcd17482ddfa7eec5020bbe29bfe957adf85eb3658e83b99c862f3e9 number=15
DEBUG[02-04|06:08:18.100] statediff deletedOrUpdatedState duration=0ms hash=0x6bb96a91fcd17482ddfa7eec5020bbe29bfe957adf85eb3658e83b99c862f3e9 number=15
DEBUG[02-04|06:08:18.102] statediff BuildStateDiffWithIntermediateStateNodes sort duration=0ms hash=0x6bb96a91fcd17482ddfa7eec5020bbe29bfe957adf85eb3658e83b99c862f3e9 number=15
DEBUG[02-04|06:08:18.106] statediff BuildStateDiffWithIntermediateStateNodes intersection count=18 duration=0ms hash=0x6bb96a91fcd17482ddfa7eec5020bbe29bfe957adf85eb3658e83b99c862f3e9 number=15
DEBUG[02-04|06:08:18.107] statediff buildAccountUpdates duration=0ms hash=0x6bb96a91fcd17482ddfa7eec5020bbe29bfe957adf85eb3658e83b99c862f3e9 number=15
DEBUG[02-04|06:08:18.113] statediff buildAccountCreations duration=0ms hash=0x6bb96a91fcd17482ddfa7eec5020bbe29bfe957adf85eb3658e83b99c862f3e9 number=15
DEBUG[02-04|06:08:18.117] statediff BuildStateDiffWithIntermediateStateNodes total duration=0ms hash=0x6bb96a91fcd17482ddfa7eec5020bbe29bfe957adf85eb3658e83b99c862f3e9 number=15
Example output: ``` DEBUG[02-04|06:08:18.098] statediff createdAndUpdatedStateWithIntermediateNodes duration=0ms hash=0x6bb96a91fcd17482ddfa7eec5020bbe29bfe957adf85eb3658e83b99c862f3e9 number=15 DEBUG[02-04|06:08:18.100] statediff deletedOrUpdatedState duration=0ms hash=0x6bb96a91fcd17482ddfa7eec5020bbe29bfe957adf85eb3658e83b99c862f3e9 number=15 DEBUG[02-04|06:08:18.102] statediff BuildStateDiffWithIntermediateStateNodes sort duration=0ms hash=0x6bb96a91fcd17482ddfa7eec5020bbe29bfe957adf85eb3658e83b99c862f3e9 number=15 DEBUG[02-04|06:08:18.106] statediff BuildStateDiffWithIntermediateStateNodes intersection count=18 duration=0ms hash=0x6bb96a91fcd17482ddfa7eec5020bbe29bfe957adf85eb3658e83b99c862f3e9 number=15 DEBUG[02-04|06:08:18.107] statediff buildAccountUpdates duration=0ms hash=0x6bb96a91fcd17482ddfa7eec5020bbe29bfe957adf85eb3658e83b99c862f3e9 number=15 DEBUG[02-04|06:08:18.113] statediff buildAccountCreations duration=0ms hash=0x6bb96a91fcd17482ddfa7eec5020bbe29bfe957adf85eb3658e83b99c862f3e9 number=15 DEBUG[02-04|06:08:18.117] statediff BuildStateDiffWithIntermediateStateNodes total duration=0ms hash=0x6bb96a91fcd17482ddfa7eec5020bbe29bfe957adf85eb3658e83b99c862f3e9 number=15 ```
i-norden reviewed 2023-02-04 06:01:58 +00:00
dboreham approved these changes 2023-02-05 22:09:30 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/go-ethereum#313
No description provided.