×

Code profiling in embedded ULE applications

  • US 9,274,920 B2
  • Filed: 09/28/2012
  • Issued: 03/01/2016
  • Est. Priority Date: 09/28/2012
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method to perform code profiling for processing ultra-low energy (ULE) devices having a low duty cycle comprising the steps of(1) providing an ULE processing device, having one or more functions with a low duty cycle, comprising a timer, wherein an external memory is connected to the device, and wherein for each function one or more global variables are assigned;

  • (2) starting code profiling including initialization and start of timer, wherein initialization and start of timer is performed in the ULE device only;

    (3) calling functions of the ULE device by a main function of the ULE device, determine the duration each function was active and put the duration results into a first of the one or more related global variables, wherein the one or more global variables are declared in a profiling code itself, and, in case a function was called multiple times, the durations of each call are incremented in its global variable;

    (4) writing by the ULE device at the end of the code profiling only, after all function calls are done, the values of the one or more global variables to the memory just before the ULE device is going to sleep mode; and

    (5) reading out the values from the memory.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×