From 523c03e4b87f20e04a2a45b79588d8ee7fe982a2 Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Tue, 19 Nov 2013 08:31:52 +0100 Subject: [PATCH] Removed old unused profile.h code --- examples/rime/example-rucb.c | 4 ---- platform/exp5438/contiki-exp5438-main.c | 1 - platform/redbee-dev/contiki-mc1322x-main.c | 5 ----- platform/redbee-econotag/contiki-mc1322x-main.c | 5 ----- platform/sky/contiki-sky-main.c | 11 ----------- platform/wismote/contiki-wismote-main.c | 11 ----------- platform/z1/contiki-z1-main.c | 12 ------------ 7 files changed, 49 deletions(-) diff --git a/examples/rime/example-rucb.c b/examples/rime/example-rucb.c index f93c892b6..ca9aa34b5 100644 --- a/examples/rime/example-rucb.c +++ b/examples/rime/example-rucb.c @@ -46,7 +46,6 @@ #include "cfs/cfs.h" #include "lib/print-stats.h" -#include "sys/profile.h" #include @@ -60,7 +59,6 @@ static unsigned long bytecount; static clock_time_t start_time; -extern int profile_max_queuelen; /*---------------------------------------------------------------------------*/ PROCESS(example_rucb_process, "Rucb example"); @@ -92,8 +90,6 @@ read_chunk(struct rucb_conn *c, int offset, char *to, int maxsize) if(bytecount == FILESIZE) { printf("Completion time %lu / %u\n", (unsigned long)clock_time() - start_time, CLOCK_SECOND); - /* profile_aggregates_print(); */ -/* profile_print_stats(); */ print_stats(); } diff --git a/platform/exp5438/contiki-exp5438-main.c b/platform/exp5438/contiki-exp5438-main.c index 59ced9328..de5dab975 100644 --- a/platform/exp5438/contiki-exp5438-main.c +++ b/platform/exp5438/contiki-exp5438-main.c @@ -48,7 +48,6 @@ #include "net/netstack.h" #include "net/rime.h" #include "sys/autostart.h" -#include "sys/profile.h" #include "sys/node-id.h" #include "lcd.h" diff --git a/platform/redbee-dev/contiki-mc1322x-main.c b/platform/redbee-dev/contiki-mc1322x-main.c index b62d7f084..bab6fa482 100644 --- a/platform/redbee-dev/contiki-mc1322x-main.c +++ b/platform/redbee-dev/contiki-mc1322x-main.c @@ -58,7 +58,6 @@ #include "net/rime.h" #include "sys/autostart.h" -#include "sys/profile.h" /* from libmc1322x */ #include "mc1322x.h" @@ -427,10 +426,6 @@ main(void) RF_CHANNEL); #endif /* WITH_UIP6 */ -#if PROFILE_CONF_ON - profile_init(); -#endif /* PROFILE_CONF_ON */ - #if TIMESYNCH_CONF_ENABLED timesynch_init(); timesynch_set_authority_level(rimeaddr_node_addr.u8[0]); diff --git a/platform/redbee-econotag/contiki-mc1322x-main.c b/platform/redbee-econotag/contiki-mc1322x-main.c index 611d7f998..e4c9c842b 100644 --- a/platform/redbee-econotag/contiki-mc1322x-main.c +++ b/platform/redbee-econotag/contiki-mc1322x-main.c @@ -59,7 +59,6 @@ #include "net/rime.h" #include "sys/autostart.h" -#include "sys/profile.h" /* from libmc1322x */ #include "mc1322x.h" @@ -491,10 +490,6 @@ uint32_t p=(uint32_t)&__heap_end__-4; set_prm_mode(AUTOACK); #endif -#if PROFILE_CONF_ON - profile_init(); -#endif /* PROFILE_CONF_ON */ - #if TIMESYNCH_CONF_ENABLED timesynch_init(); timesynch_set_authority_level(rimeaddr_node_addr.u8[0]); diff --git a/platform/sky/contiki-sky-main.c b/platform/sky/contiki-sky-main.c index 361d47878..ff1551a94 100644 --- a/platform/sky/contiki-sky-main.c +++ b/platform/sky/contiki-sky-main.c @@ -53,7 +53,6 @@ #include "cfs-coffee-arch.h" #include "cfs/cfs-coffee.h" #include "sys/autostart.h" -#include "sys/profile.h" #if UIP_CONF_ROUTER @@ -347,10 +346,6 @@ main(int argc, char **argv) serial_line_init(); #endif -#if PROFILE_CONF_ON - profile_init(); -#endif /* PROFILE_CONF_ON */ - leds_off(LEDS_GREEN); #if TIMESYNCH_CONF_ENABLED @@ -409,17 +404,11 @@ main(int argc, char **argv) /* watchdog_stop();*/ while(1) { int r; -#if PROFILE_CONF_ON - profile_episode_start(); -#endif /* PROFILE_CONF_ON */ do { /* Reset watchdog. */ watchdog_periodic(); r = process_run(); } while(r > 0); -#if PROFILE_CONF_ON - profile_episode_end(); -#endif /* PROFILE_CONF_ON */ /* * Idle processing. diff --git a/platform/wismote/contiki-wismote-main.c b/platform/wismote/contiki-wismote-main.c index 2bb6dbef3..6e594db39 100644 --- a/platform/wismote/contiki-wismote-main.c +++ b/platform/wismote/contiki-wismote-main.c @@ -52,7 +52,6 @@ #include "sys/node-id.h" #include "sys/autostart.h" -#include "sys/profile.h" #if UIP_CONF_ROUTER @@ -352,10 +351,6 @@ main(int argc, char **argv) serial_line_init(); #endif -#if PROFILE_CONF_ON - profile_init(); -#endif /* PROFILE_CONF_ON */ - leds_off(LEDS_GREEN); #if TIMESYNCH_CONF_ENABLED @@ -412,17 +407,11 @@ main(int argc, char **argv) while(1) { int r; -#if PROFILE_CONF_ON - profile_episode_start(); -#endif /* PROFILE_CONF_ON */ do { /* Reset watchdog. */ watchdog_periodic(); r = process_run(); } while(r > 0); -#if PROFILE_CONF_ON - profile_episode_end(); -#endif /* PROFILE_CONF_ON */ /* * Idle processing. diff --git a/platform/z1/contiki-z1-main.c b/platform/z1/contiki-z1-main.c index fafea096a..ecf970d77 100644 --- a/platform/z1/contiki-z1-main.c +++ b/platform/z1/contiki-z1-main.c @@ -57,8 +57,6 @@ #include "cfs-coffee-arch.h" #include "cfs/cfs-coffee.h" #include "sys/autostart.h" -#include "sys/profile.h" - #include "dev/battery-sensor.h" #include "dev/button-sensor.h" @@ -363,10 +361,6 @@ main(int argc, char **argv) serial_line_init(); #endif -#if PROFILE_CONF_ON - profile_init(); -#endif /* PROFILE_CONF_ON */ - leds_off(LEDS_GREEN); #if TIMESYNCH_CONF_ENABLED @@ -419,17 +413,11 @@ main(int argc, char **argv) /* watchdog_stop();*/ while(1) { int r; -#if PROFILE_CONF_ON - profile_episode_start(); -#endif /* PROFILE_CONF_ON */ do { /* Reset watchdog. */ watchdog_periodic(); r = process_run(); } while(r > 0); -#if PROFILE_CONF_ON - profile_episode_end(); -#endif /* PROFILE_CONF_ON */ /* * Idle processing.