Skip to content

Commit

Permalink
Add GetTimeDetail for SnapshotRuntimeStats (#1422)
Browse files Browse the repository at this point in the history
Signed-off-by: yibin <[email protected]>
  • Loading branch information
yibin87 authored Aug 14, 2024
1 parent 4c6b217 commit 0820519
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions txnkv/txnsnapshot/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -1216,6 +1216,11 @@ func (rs *SnapshotRuntimeStats) String() string {
return buf.String()
}

// GetTimeDetail returns the timeDetail
func (rs *SnapshotRuntimeStats) GetTimeDetail() *util.TimeDetail {
return rs.timeDetail
}

// GetCmdRPCCount returns the count of the corresponding kind of rpc requests
func (rs *SnapshotRuntimeStats) GetCmdRPCCount(cmd tikvrpc.CmdType) int64 {
if rs.rpcStats == nil || len(rs.rpcStats.RPCStats) == 0 {
Expand Down

0 comments on commit 0820519

Please sign in to comment.