diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/report-generator.h | 21 | ||||
-rw-r--r-- | src/report-json-serializer.h | 10 | ||||
-rw-r--r-- | src/report.h | 9 |
3 files changed, 0 insertions, 40 deletions
diff --git a/src/report-generator.h b/src/report-generator.h index c79d1e8..2aa05bd 100644 --- a/src/report-generator.h +++ b/src/report-generator.h @@ -126,27 +126,6 @@ int report_generator_generate_system_cpu_usage_report( struct system_cpu_usage_report *report); /** - * @brief Fills system_percpu_usage_report. - * - * When interval > 0 the function will block for interval seconds and return report with - * system cpus usage calculated as average during interval period. - * When interval == 0 the function will not block and return report with system cpus - * usage calculated as average between current time and last call to - * report_generator_generate_system_percpu_usage_report for generator - * - * @param[in] generator system generator - * @param[in] interval in seconds, Should be >= 0 - * @param[out] report - * @return 0 on success, other value on failure - * - * @remark report should be released with @free - */ -int report_generator_generate_percpu_usage_report( - report_generator_system_t *generator, - int interval, - struct system_percpu_usage_report **report); - -/** * @brief Fills system_memory_usage_report. * * @param[in] generator system generator diff --git a/src/report-json-serializer.h b/src/report-json-serializer.h index 90b80fd..43c62a9 100644 --- a/src/report-json-serializer.h +++ b/src/report-json-serializer.h @@ -50,16 +50,6 @@ char *report_json_serializer_serialize_system_memory_usage_report(struct system_ char *report_json_serializer_serialize_system_cpu_usage_report(struct system_cpu_usage_report *report); /** - * @brief Serializes system_cpus_usage_report to json string - * - * @param[in] report Report structure with usage data. - * - * @return dynamically allocated string on NULL on error. - * @remark returned value should be released with @free - */ -char *report_json_serializer_serialize_system_cpus_usage_report(struct system_percpu_usage_report *report); - -/** * @brief Serializes process_memory_usage_report to json string * * @param[in] report Report structure with usage data. diff --git a/src/report.h b/src/report.h index 294314d..811a532 100644 --- a/src/report.h +++ b/src/report.h @@ -48,15 +48,6 @@ struct system_cpu_usage_report { }; /** - * @brief System CPU usage report per core. - */ -struct system_percpu_usage_report { - time_t time; /** Number of seconds after the Epoch */ - unsigned int cpu_count; /** Number of logical cpus (cores) */ - float usage[]; /** Utilization of each logical cpu (core) */ -}; - -/** * @brief Process CPU usage report. */ struct process_cpu_usage_report { |