github.com/theQRL/go-zond@v0.1.1/trie/triedb/pathdb/metrics.go (about)

     1  // Copyright 2022 The go-ethereum Authors
     2  // This file is part of the go-ethereum library.
     3  //
     4  // The go-ethereum library is free software: you can redistribute it and/or modify
     5  // it under the terms of the GNU Lesser General Public License as published by
     6  // the Free Software Foundation, either version 3 of the License, or
     7  // (at your option) any later version.
     8  //
     9  // The go-ethereum library is distributed in the hope that it will be useful,
    10  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    12  // GNU Lesser General Public License for more details.
    13  //
    14  // You should have received a copy of the GNU Lesser General Public License
    15  // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>
    16  
    17  package pathdb
    18  
    19  import "github.com/theQRL/go-zond/metrics"
    20  
    21  var (
    22  	cleanHitMeter   = metrics.NewRegisteredMeter("pathdb/clean/hit", nil)
    23  	cleanMissMeter  = metrics.NewRegisteredMeter("pathdb/clean/miss", nil)
    24  	cleanReadMeter  = metrics.NewRegisteredMeter("pathdb/clean/read", nil)
    25  	cleanWriteMeter = metrics.NewRegisteredMeter("pathdb/clean/write", nil)
    26  
    27  	dirtyHitMeter         = metrics.NewRegisteredMeter("pathdb/dirty/hit", nil)
    28  	dirtyMissMeter        = metrics.NewRegisteredMeter("pathdb/dirty/miss", nil)
    29  	dirtyReadMeter        = metrics.NewRegisteredMeter("pathdb/dirty/read", nil)
    30  	dirtyWriteMeter       = metrics.NewRegisteredMeter("pathdb/dirty/write", nil)
    31  	dirtyNodeHitDepthHist = metrics.NewRegisteredHistogram("pathdb/dirty/depth", nil, metrics.NewExpDecaySample(1028, 0.015))
    32  
    33  	cleanFalseMeter = metrics.NewRegisteredMeter("pathdb/clean/false", nil)
    34  	dirtyFalseMeter = metrics.NewRegisteredMeter("pathdb/dirty/false", nil)
    35  	diskFalseMeter  = metrics.NewRegisteredMeter("pathdb/disk/false", nil)
    36  
    37  	commitTimeTimer  = metrics.NewRegisteredTimer("pathdb/commit/time", nil)
    38  	commitNodesMeter = metrics.NewRegisteredMeter("pathdb/commit/nodes", nil)
    39  	commitBytesMeter = metrics.NewRegisteredMeter("pathdb/commit/bytes", nil)
    40  
    41  	gcNodesMeter = metrics.NewRegisteredMeter("pathdb/gc/nodes", nil)
    42  	gcBytesMeter = metrics.NewRegisteredMeter("pathdb/gc/bytes", nil)
    43  
    44  	diffLayerBytesMeter = metrics.NewRegisteredMeter("pathdb/diff/bytes", nil)
    45  	diffLayerNodesMeter = metrics.NewRegisteredMeter("pathdb/diff/nodes", nil)
    46  
    47  	historyBuildTimeMeter  = metrics.NewRegisteredTimer("pathdb/history/time", nil)
    48  	historyDataBytesMeter  = metrics.NewRegisteredMeter("pathdb/history/bytes/data", nil)
    49  	historyIndexBytesMeter = metrics.NewRegisteredMeter("pathdb/history/bytes/index", nil)
    50  )