summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Kolodziejski <m.kolodziejs@samsung.com>2018-07-16 16:39:13 +0200
committerMichal Kolodziejski <m.kolodziejs@samsung.com>2018-07-16 16:39:13 +0200
commitb8a857928a3d50b7f41d0665aefd7244627ed89b (patch)
tree4049b96818032902dca780b571776d9396683eb0
parentd9cdf0617f87029e9525479388a13b1a844b488f (diff)
downloadttsd-worker-task-b8a857928a3d50b7f41d0665aefd7244627ed89b.tar.gz
ttsd-worker-task-b8a857928a3d50b7f41d0665aefd7244627ed89b.tar.bz2
ttsd-worker-task-b8a857928a3d50b7f41d0665aefd7244627ed89b.zip
refactor: removed percpu report
Change-Id: Ic0aced66216ff37e11ad5cbd013f330c379807e7 Signed-off-by: Michal Kolodziejski <m.kolodziejs@samsung.com>
-rw-r--r--src/report-generator.h21
-rw-r--r--src/report-json-serializer.h10
-rw-r--r--src/report.h9
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 {