-spec n_restarts() -> non_neg_integer() |
undefined.
Return the total number of times the site has been restarted. A fresh node starts with this value = 0.
This value increases when the Erlang VM itself restarts,
or classy application goes from stopped to single run level.
NOTE: This counter doesn’t get reset when node joins or leaves the cluster, it increases instead.