Skip to content

Commit fed81d0

Browse files
committed
clean up explaination in the documentation
1 parent 8adf46f commit fed81d0

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

docs/metrics.md

+34-34
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ loadgen.soroban.setup_invoke | meter | loadgenerator: soroban s
7878
loadgen.soroban.setup_upgrade | meter | loadgenerator: soroban setup upgrades TXs submitted
7979
loadgen.soroban.upload | meter | loadgenerator: soroban upload TXs submitted
8080
loadgen.step.count | meter | loadgenerator: generated some transactions
81-
loadgen.step.submit | timer | loadgenerator: time spent submiting transactions per step
81+
loadgen.step.submit | timer | loadgenerator: time spent submitting transactions per step
8282
loadgen.txn.attempted | meter | loadgenerator: transaction submitted
8383
loadgen.txn.bytes | meter | loadgenerator: size of transactions submitted
8484
loadgen.txn.rejected | meter | loadgenerator: transaction rejected
@@ -162,40 +162,40 @@ state-archival.eviction.bytes-scanned | counter | number of bytes that evi
162162
state-archival.eviction.entries-evicted | counter | number of entries that have been evicted
163163
state-archival.eviction.incomplete-scan | counter | number of buckets that were too large to be fully scanned for eviction
164164
state-archival.eviction.period | counter | number of ledgers to complete an eviction scan
165-
soroban.host-fn-op.read-entry | meter | number of entries read
166-
soroban.host-fn-op.write-entry | meter | number of entries written
167-
soroban.host-fn-op.read-key-byte | meter | number of key bytes in read entries
168-
soroban.host-fn-op.write-key-byte | meter | number of key bytes in written entries
169-
soroban.host-fn-op.read-ledger-byte | meter | number of entry (data + code) bytes in read entries
170-
soroban.host-fn-op.read-data-byte | meter | number of data bytes in read entries
171-
soroban.host-fn-op.read-code-byte | meter | number of code bytes in read entries
172-
soroban.host-fn-op.write-ledger-byte | meter | number of entry (data + code) bytes in written entries
173-
soroban.host-fn-op.write-data-byte | meter | number of data bytes in written entries
174-
soroban.host-fn-op.write-code-byte | meter | number of code bytes in written entries
175-
soroban.host-fn-op.emit-event | meter | number of events emitted
176-
soroban.host-fn-op.emit-event-byte | meter | number of event bytes emitted
177-
soroban.host-fn-op.cpu-insn | meter | metered cpu instructions
178-
soroban.host-fn-op.mem-byte | meter | metered memory bytes
179-
soroban.host-fn-op.invoke-time-nsecs | timer | time spent in `invoke_host_function`
180-
soroban.host-fn-op.cpu-insn-excl-vm | meter | metered cpu instructions excluding VM instantation
181-
soroban.host-fn-op.invoke-time-nsecs-excl-vm | timer | time spent in `invoke_host_function` excluding VM instantation
182-
soroban.host-fn-op.invoke-time-fsecs-cpu-insn-ratio | histogram | ratio between invoke_time (femto-seconds) and cpu instructions
183-
soroban.host-fn-op.invoke-time-fsecs-cpu-insn-ratio-excl-vm | histogram | ratio between invoke_time (femto-seconds) and cpu instructions excluding VM instantation
184-
soroban.host-fn-op.max-rw-key-byte | meter | bytes of the largest key in entries read/written
185-
soroban.host-fn-op.max-rw-data-byte | meter | bytes of the largest data entry read/written
186-
soroban.host-fn-op.max-rw-code-byte | meter | bytes of the largest code entry read/written
187-
soroban.host-fn-op.max-emit-event-byte | meter | bytes of the largest event emitted
188-
soroban.host-fn-op.success | meter | if `InvokeHostFunctionOp` results in a success
189-
soroban.host-fn-op.failure | meter | if `InvokeHostFunctionOp` results in a failure
190-
soroban.host-fn-op.exec | timer | time spent in `InvokeHostFunctionOp`
191-
soroban.restore-fprint-op.read-ledger-byte | meter | number of entry bytes in read entries
192-
soroban.restore-fprint-op.write-ledger-byte | meter | number of entry bytes in written entries
193-
soroban.ext-fprint-ttl-op.read-ledger-byte | meter | number of entry bytes in read entries
165+
soroban.host-fn-op.read-entry | meter | number of entries accessed (read or modified) during the `InvokeHostFunctionOp`
166+
soroban.host-fn-op.write-entry | meter | number of entries modified during the `InvokeHostFunctionOp`
167+
soroban.host-fn-op.read-key-byte | meter | number of `LedgerKey` bytes in entries accessed (read or modified) during the `InvokeHostFunctionOp`
168+
soroban.host-fn-op.write-key-byte | meter | number of `LedgerKey` bytes in entries modified during the `InvokeHostFunctionOp`
169+
soroban.host-fn-op.read-ledger-byte | meter | number of `LedgerEntry` bytes accessed (read or modified) during the `InvokeHostFunctionOp`
170+
soroban.host-fn-op.read-data-byte | meter | number of `ContractDataEntry` bytes accessed (read or modified) during the `InvokeHostFunctionOp`
171+
soroban.host-fn-op.read-code-byte | meter | number of `ContractCodeEntry` bytes accessed (read or modified) during the `InvokeHostFunctionOp`
172+
soroban.host-fn-op.write-ledger-byte | meter | number of `LedgerEntry` bytes modified during the `InvokeHostFunctionOp`
173+
soroban.host-fn-op.write-data-byte | meter | number of `ContractDataEntry` bytes modified during the `InvokeHostFunctionOp`
174+
soroban.host-fn-op.write-code-byte | meter | number of `ContractCodeEntry` bytes modified during the `InvokeHostFunctionOp`
175+
soroban.host-fn-op.emit-event | meter | number of events emitted during the `InvokeHostFunctionOp`
176+
soroban.host-fn-op.emit-event-byte | meter | number of event bytes emitted during the `InvokeHostFunctionOp`
177+
soroban.host-fn-op.cpu-insn | meter | number of metered cpu instructions during the `InvokeHostFunctionOp`
178+
soroban.host-fn-op.mem-byte | meter | number of metered memory bytes during the `InvokeHostFunctionOp`
179+
soroban.host-fn-op.invoke-time-nsecs | timer | time spent on the soroban host invocation. Note: this is **not** the total time of the operation, which is tracked under "soroban.host-fn-op.exec".
180+
soroban.host-fn-op.cpu-insn-excl-vm | meter | number of metered cpu instructions excluding VM instantiation during the `InvokeHostFunctionOp`
181+
soroban.host-fn-op.invoke-time-nsecs-excl-vm | timer | time spent in soroban host invocation excluding VM instantiation
182+
soroban.host-fn-op.invoke-time-fsecs-cpu-insn-ratio | histogram | ratio between soroban host invocation time (femto-seconds) and metered cpu instructions
183+
soroban.host-fn-op.invoke-time-fsecs-cpu-insn-ratio-excl-vm | histogram | ratio between soroban host invocation time (femto-seconds) and metered cpu instructions, excluding VM instantiation
184+
soroban.host-fn-op.max-rw-key-byte | meter | size of the largest `LedgerKey` (in bytes) among all entires accessed (read or modified) during the `InvokeHostFunctionOp`
185+
soroban.host-fn-op.max-rw-data-byte | meter | size of the largest `ContractDataEntry` (in bytes) among all entires accessed (read or modified) during the `InvokeHostFunctionOp`
186+
soroban.host-fn-op.max-rw-code-byte | meter | size of the largest `ContractCodeEntry` (in bytes) among all entires accessed (read or modified) during the `InvokeHostFunctionOp`
187+
soroban.host-fn-op.max-emit-event-byte | meter | size of the largest event emitted during the `InvokeHostFunctionOp`
188+
soroban.host-fn-op.success | meter | number of successful `InvokeHostFunctionOp` operations
189+
soroban.host-fn-op.failure | meter | number of failed `InvokeHostFunctionOp` operations
190+
soroban.host-fn-op.exec | timer | total time spent during the `InvokeHostFunctionOp`
191+
soroban.restore-fprint-op.read-ledger-byte | meter | number of `LedgerEntry` bytes accessed (read or modified) during the `RestoreFootprintOp`
192+
soroban.restore-fprint-op.write-ledger-byte | meter | number of `LedgerEntry` bytes modified during the `RestoreFootprintOp`
193+
soroban.ext-fprint-ttl-op.read-ledger-byte | meter | number of `LedgerEntry` bytes accessed (read or modified) during the `ExtendFootprintTTLOp`
194194
soroban.ledger.cpu-insn | histogram | metered cpu instructions per ledger
195-
soroban.ledger.read-entry | histogram | number of entries read per ledger
196-
soroban.ledger.read-byte | histogram | number of entry bytes in read entries per ledger
197-
soroban.ledger.write-entry | histogram | number of entries written per ledger
198-
soroban.ledger.write-byte | histogram | number of entry bytes in written entries per ledger
195+
soroban.ledger.read-entry | histogram | number of entries accessed (read or modified) per ledger
196+
soroban.ledger.read-ledger-byte | histogram | number of `LedgerEntry` bytes accessed (read or modified) per ledger
197+
soroban.ledger.write-entry | histogram | number of entries modified per ledger
198+
soroban.ledger.write-ledger-byte | histogram | number of `LedgerEntry` bytes modified per ledger
199199
soroban.config.contract-max-rw-key-byte | counter | soroban config setting `contract_data_key_size_bytes`
200200
soroban.config.contract-max-rw-data-byte | counter | soroban config setting `contract_data_entry_size_bytes`
201201
soroban.config.contract-max-rw-code-byte | counter | soroban config setting `contract_max_size_bytes`

src/ledger/LedgerManagerImpl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ SorobanLedgerMetrics::publishAndResetMetrics()
127127
.Update(mLedgerCpuInsn);
128128
mMetrics.NewHistogram({"soroban", "ledger", "read-entry"})
129129
.Update(mLedgerReadEntry);
130-
mMetrics.NewHistogram({"soroban", "ledger", "read-byte"})
130+
mMetrics.NewHistogram({"soroban", "ledger", "read-ledger-byte"})
131131
.Update(mLedgerReadByte);
132132
mMetrics.NewHistogram({"soroban", "ledger", "write-entry"})
133133
.Update(mLedgerWriteEntry);
134-
mMetrics.NewHistogram({"soroban", "ledger", "write-byte"})
134+
mMetrics.NewHistogram({"soroban", "ledger", "write-ledger-byte"})
135135
.Update(mLedgerWriteByte);
136136
mLedgerCpuInsn = 0;
137137
mLedgerReadEntry = 0;

0 commit comments

Comments
 (0)