Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
f0340223
Unverified
Commit
f0340223
authored
Mar 25, 2019
by
Péter Szilágyi
Committed by
GitHub
Mar 25, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #19331 from karalabe/fix-trie-metrics
core: split trie op metrics from the correct chain metrics
parents
acbb8a14
435020f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
blockchain.go
core/blockchain.go
+3
-6
No files found.
core/blockchain.go
View file @
f0340223
...
@@ -1271,13 +1271,10 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals bool) (int, []
...
@@ -1271,13 +1271,10 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals bool) (int, []
storageUpdateTimer
.
Update
(
state
.
StorageUpdates
)
storageUpdateTimer
.
Update
(
state
.
StorageUpdates
)
storageCommitTimer
.
Update
(
state
.
StorageCommits
)
storageCommitTimer
.
Update
(
state
.
StorageCommits
)
trieAccess
:=
state
.
AccountReads
+
state
.
AccountHashes
+
state
.
AccountUpdates
+
state
.
AccountCommits
trieAccess
+=
state
.
StorageReads
+
state
.
StorageHashes
+
state
.
StorageUpdates
+
state
.
StorageCommits
blockInsertTimer
.
UpdateSince
(
start
)
blockInsertTimer
.
UpdateSince
(
start
)
blockExecutionTimer
.
Update
(
t1
.
Sub
(
t0
)
-
trieAcces
s
)
blockExecutionTimer
.
Update
(
t1
.
Sub
(
t0
)
-
state
.
AccountReads
-
state
.
AccountUpdates
-
state
.
StorageReads
-
state
.
StorageUpdate
s
)
blockValidationTimer
.
Update
(
t2
.
Sub
(
t1
))
blockValidationTimer
.
Update
(
t2
.
Sub
(
t1
)
-
state
.
AccountHashes
-
state
.
StorageHashes
)
blockWriteTimer
.
Update
(
t3
.
Sub
(
t2
))
blockWriteTimer
.
Update
(
t3
.
Sub
(
t2
)
-
state
.
AccountCommits
-
state
.
StorageCommits
)
switch
status
{
switch
status
{
case
CanonStatTy
:
case
CanonStatTy
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment