view mod_statistics_cputotal/mod_statistics_cputotal.lua @ 5699:83a2fb6df746

mod_storage_s3: Fix logging Seems request and response loggers is only a thing on http requests and responses from net.http.server, not net.http requests.
author Kim Alvefur <zash@zash.se>
date Sat, 11 Nov 2023 22:43:34 +0100
parents 4557ac5c205d
children
line wrap: on
line source

-- Provides total CPU time, useful for DERIVE

module:set_global();

module:provides("statistics", {
	statistics = {
		cpu_total = { -- milliseconds of CPU time used
			get = function()
				return os.clock() * 1000;
			end
		}
	}
});