Add sigverify_stage-total_verify_time datapoint
This commit is contained in:
@ -5,6 +5,8 @@
|
|||||||
//! transaction. All processing is done on the CPU by default and on a GPU
|
//! transaction. All processing is done on the CPU by default and on a GPU
|
||||||
//! if the `cuda` feature is enabled with `--features=cuda`.
|
//! if the `cuda` feature is enabled with `--features=cuda`.
|
||||||
|
|
||||||
|
use influx_db_client as influxdb;
|
||||||
|
use metrics;
|
||||||
use packet::SharedPackets;
|
use packet::SharedPackets;
|
||||||
use rand::{thread_rng, Rng};
|
use rand::{thread_rng, Rng};
|
||||||
use result::{Error, Result};
|
use result::{Error, Result};
|
||||||
@ -79,6 +81,18 @@ impl SigVerifyStage {
|
|||||||
len,
|
len,
|
||||||
(len as f32 / total_time_s)
|
(len as f32 / total_time_s)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
metrics::submit(
|
||||||
|
influxdb::Point::new("sigverify_stage-total_verify_time")
|
||||||
|
.add_field("batch_len", influxdb::Value::Integer(batch_len as i64))
|
||||||
|
.add_field("len", influxdb::Value::Integer(len as i64))
|
||||||
|
.add_field(
|
||||||
|
"total_time_ms",
|
||||||
|
influxdb::Value::Integer(total_time_ms as i64),
|
||||||
|
)
|
||||||
|
.to_owned(),
|
||||||
|
);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user