Removed old unused profile.h code
This commit is contained in:
parent
30c0c5eaf6
commit
523c03e4b8
|
@ -46,7 +46,6 @@
|
|||
|
||||
#include "cfs/cfs.h"
|
||||
#include "lib/print-stats.h"
|
||||
#include "sys/profile.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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]);
|
||||
|
|
|
@ -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]);
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue