Removed old unused profile.h code

This commit is contained in:
Adam Dunkels 2013-11-19 08:31:52 +01:00
parent 30c0c5eaf6
commit 523c03e4b8
7 changed files with 0 additions and 49 deletions

View file

@ -46,7 +46,6 @@
#include "cfs/cfs.h" #include "cfs/cfs.h"
#include "lib/print-stats.h" #include "lib/print-stats.h"
#include "sys/profile.h"
#include <stdio.h> #include <stdio.h>
@ -60,7 +59,6 @@
static unsigned long bytecount; static unsigned long bytecount;
static clock_time_t start_time; static clock_time_t start_time;
extern int profile_max_queuelen;
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
PROCESS(example_rucb_process, "Rucb example"); 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) { if(bytecount == FILESIZE) {
printf("Completion time %lu / %u\n", (unsigned long)clock_time() - start_time, CLOCK_SECOND); printf("Completion time %lu / %u\n", (unsigned long)clock_time() - start_time, CLOCK_SECOND);
/* profile_aggregates_print(); */
/* profile_print_stats(); */
print_stats(); print_stats();
} }

View file

@ -48,7 +48,6 @@
#include "net/netstack.h" #include "net/netstack.h"
#include "net/rime.h" #include "net/rime.h"
#include "sys/autostart.h" #include "sys/autostart.h"
#include "sys/profile.h"
#include "sys/node-id.h" #include "sys/node-id.h"
#include "lcd.h" #include "lcd.h"

View file

@ -58,7 +58,6 @@
#include "net/rime.h" #include "net/rime.h"
#include "sys/autostart.h" #include "sys/autostart.h"
#include "sys/profile.h"
/* from libmc1322x */ /* from libmc1322x */
#include "mc1322x.h" #include "mc1322x.h"
@ -427,10 +426,6 @@ main(void)
RF_CHANNEL); RF_CHANNEL);
#endif /* WITH_UIP6 */ #endif /* WITH_UIP6 */
#if PROFILE_CONF_ON
profile_init();
#endif /* PROFILE_CONF_ON */
#if TIMESYNCH_CONF_ENABLED #if TIMESYNCH_CONF_ENABLED
timesynch_init(); timesynch_init();
timesynch_set_authority_level(rimeaddr_node_addr.u8[0]); timesynch_set_authority_level(rimeaddr_node_addr.u8[0]);

View file

@ -59,7 +59,6 @@
#include "net/rime.h" #include "net/rime.h"
#include "sys/autostart.h" #include "sys/autostart.h"
#include "sys/profile.h"
/* from libmc1322x */ /* from libmc1322x */
#include "mc1322x.h" #include "mc1322x.h"
@ -491,10 +490,6 @@ uint32_t p=(uint32_t)&__heap_end__-4;
set_prm_mode(AUTOACK); set_prm_mode(AUTOACK);
#endif #endif
#if PROFILE_CONF_ON
profile_init();
#endif /* PROFILE_CONF_ON */
#if TIMESYNCH_CONF_ENABLED #if TIMESYNCH_CONF_ENABLED
timesynch_init(); timesynch_init();
timesynch_set_authority_level(rimeaddr_node_addr.u8[0]); timesynch_set_authority_level(rimeaddr_node_addr.u8[0]);

View file

@ -53,7 +53,6 @@
#include "cfs-coffee-arch.h" #include "cfs-coffee-arch.h"
#include "cfs/cfs-coffee.h" #include "cfs/cfs-coffee.h"
#include "sys/autostart.h" #include "sys/autostart.h"
#include "sys/profile.h"
#if UIP_CONF_ROUTER #if UIP_CONF_ROUTER
@ -347,10 +346,6 @@ main(int argc, char **argv)
serial_line_init(); serial_line_init();
#endif #endif
#if PROFILE_CONF_ON
profile_init();
#endif /* PROFILE_CONF_ON */
leds_off(LEDS_GREEN); leds_off(LEDS_GREEN);
#if TIMESYNCH_CONF_ENABLED #if TIMESYNCH_CONF_ENABLED
@ -409,17 +404,11 @@ main(int argc, char **argv)
/* watchdog_stop();*/ /* watchdog_stop();*/
while(1) { while(1) {
int r; int r;
#if PROFILE_CONF_ON
profile_episode_start();
#endif /* PROFILE_CONF_ON */
do { do {
/* Reset watchdog. */ /* Reset watchdog. */
watchdog_periodic(); watchdog_periodic();
r = process_run(); r = process_run();
} while(r > 0); } while(r > 0);
#if PROFILE_CONF_ON
profile_episode_end();
#endif /* PROFILE_CONF_ON */
/* /*
* Idle processing. * Idle processing.

View file

@ -52,7 +52,6 @@
#include "sys/node-id.h" #include "sys/node-id.h"
#include "sys/autostart.h" #include "sys/autostart.h"
#include "sys/profile.h"
#if UIP_CONF_ROUTER #if UIP_CONF_ROUTER
@ -352,10 +351,6 @@ main(int argc, char **argv)
serial_line_init(); serial_line_init();
#endif #endif
#if PROFILE_CONF_ON
profile_init();
#endif /* PROFILE_CONF_ON */
leds_off(LEDS_GREEN); leds_off(LEDS_GREEN);
#if TIMESYNCH_CONF_ENABLED #if TIMESYNCH_CONF_ENABLED
@ -412,17 +407,11 @@ main(int argc, char **argv)
while(1) { while(1) {
int r; int r;
#if PROFILE_CONF_ON
profile_episode_start();
#endif /* PROFILE_CONF_ON */
do { do {
/* Reset watchdog. */ /* Reset watchdog. */
watchdog_periodic(); watchdog_periodic();
r = process_run(); r = process_run();
} while(r > 0); } while(r > 0);
#if PROFILE_CONF_ON
profile_episode_end();
#endif /* PROFILE_CONF_ON */
/* /*
* Idle processing. * Idle processing.

View file

@ -57,8 +57,6 @@
#include "cfs-coffee-arch.h" #include "cfs-coffee-arch.h"
#include "cfs/cfs-coffee.h" #include "cfs/cfs-coffee.h"
#include "sys/autostart.h" #include "sys/autostart.h"
#include "sys/profile.h"
#include "dev/battery-sensor.h" #include "dev/battery-sensor.h"
#include "dev/button-sensor.h" #include "dev/button-sensor.h"
@ -363,10 +361,6 @@ main(int argc, char **argv)
serial_line_init(); serial_line_init();
#endif #endif
#if PROFILE_CONF_ON
profile_init();
#endif /* PROFILE_CONF_ON */
leds_off(LEDS_GREEN); leds_off(LEDS_GREEN);
#if TIMESYNCH_CONF_ENABLED #if TIMESYNCH_CONF_ENABLED
@ -419,17 +413,11 @@ main(int argc, char **argv)
/* watchdog_stop();*/ /* watchdog_stop();*/
while(1) { while(1) {
int r; int r;
#if PROFILE_CONF_ON
profile_episode_start();
#endif /* PROFILE_CONF_ON */
do { do {
/* Reset watchdog. */ /* Reset watchdog. */
watchdog_periodic(); watchdog_periodic();
r = process_run(); r = process_run();
} while(r > 0); } while(r > 0);
#if PROFILE_CONF_ON
profile_episode_end();
#endif /* PROFILE_CONF_ON */
/* /*
* Idle processing. * Idle processing.