From bd5eef3dc8792c7103c079eb126696c7d9dcb0f0 Mon Sep 17 00:00:00 2001 From: Zhuodi Liu Date: Tue, 25 Apr 2017 14:01:50 -0700 Subject: [PATCH] Debug --- src/CPU.cpp | 73 ++++++++++------------------------------------------- 1 file changed, 13 insertions(+), 60 deletions(-) diff --git a/src/CPU.cpp b/src/CPU.cpp index 3057dd5..741b987 100644 --- a/src/CPU.cpp +++ b/src/CPU.cpp @@ -109,30 +109,6 @@ void getProcedureOverhead(std::vector &overhead){ } double getSystemCallOverhead() { - uint64_t start, end; - int SUC_TIMES = 0; - pid_t pid; - double sum = 0; - for (int i=0; i procedureOverhead; getProcedureOverhead(procedureOverhead); for (int i=0; i<8; ++i) { - printf("The average ovehead of a function with %d integer arguments is %f\n", i, procedureOverhead[i]); + printf("The average overhead of a function with %d integer arguments is %f\n", i, procedureOverhead[i]); } for (int i=0; i