Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

perf(metrics): Add metrics of state #397

Merged
merged 7 commits into from
Aug 4, 2020

Conversation

yejiayu
Copy link
Contributor

@yejiayu yejiayu commented Aug 4, 2020

No description provided.

pub fn on_storage_get_state(duration: Duration, keys: i64) {
let seconds = duration_to_sec(duration);

STORAGE_PUT_CF_TIME_USAGE.state.inc_by(seconds);
Copy link
Contributor

@homura homura Aug 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get_state is not put_cf, should be STORAGE_GET_CF_TIME_USAGE

@homura
Copy link
Contributor

homura commented Aug 4, 2020

/lgtm

@muta-robot muta-robot removed the lgtm #8ef42e label Aug 4, 2020
@LycrusHamster
Copy link
Contributor

/lgtm

@muta-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: homura, LycrusHamster

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [LycrusHamster,homura]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@muta-robot muta-robot merged commit 5822764 into nervosnetwork:master Aug 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants