I am trying to measure chain insert rates in a Geth node.
In a deprecated Go-ethereum blog, it says I can use
debug.metrics(false) to get all available metrics (so I can use debug.metrics().chain.inserts to get insert rates).
However, that no longer holds. When I tested on the console, even with
--metrics flag added in starting a Geth node, the console continues to complain the debug object "has no member 'metrics'".
Here is my output when I type "debug. ", and by the way, it shows a lot more than the options listed here.
I then went to the codebase, and see metrics objects are still there. I am wondering how can I get some metrics reports as the outputs in the deprecated blog.
Any help is appreciated!