+//resource utilization tracing method
+typedef enum {methodA,methodB,methodC} TracingMethod;
+static TracingMethod currentMethod;
+
+static void __TRACE_define_method (char *method)
+{
+ if (!strcmp(method, "a")){
+ currentMethod = methodA;
+ }else if (!strcmp(method, "b")){
+ currentMethod = methodB;
+ }else if (!strcmp(method, "c")){
+ currentMethod = methodC;
+ }else{
+ currentMethod = methodB; //default
+ }
+}
+
+//A