This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EnergyTrace Automatic Measurements

Other Parts Discussed in Thread: ENERGYTRACE

I would like to measure energy consumption of specific functions in an automatic way. Is there any way to automatically trigger the measurements on and off at a specific instruction?

For example, I would like to get a couple thousand measurements of a function which takes input values from a communication interface, and then later apply statistics on this data.

  • Hi Oscar,

    If you have a device that supports energyTrace++, you can see on the page EnergyTrace++ profile that it will show you the percent of runtime and energy that the code spends at different portions of code when in active mode. It will list addresses - checking the disassembly you can see which of your particular functions that corresponds to. So you can quickly check the portions of code that are taking up the most time and energy to see where you can optimize. It will show you the percent of your total active energy that this portion of code is taking up, so it is a relative measure instead of absolute, but would that work for your purposes?

    Regards,
    Katie
  • Hi Katie,

    Thanks for your answer. With this method I have to place a breakpoint, then manually start EnergyTrace++, wait for the capture timer to finish and then look at the output. This works great for a single event. Is there a way to automate this for a higher number of trials (say in the order of thousands)?

    Thanks,
    Oscar

     

  • My suspicion would be that you might be able to do something like this with Debug Server Scripting (DSS). processors.wiki.ti.com/.../Debug_Server_Scripting
    I see in my CCS install at C:/ti/ccsv6/ccs_base/scripting/examples/DVTExamples there is an EnergyTrace folder which sounds like there is an EnergyTrace example. I believe that the example saves the data to a csv file so you then could do whatever post-processing you might want to on it for your purposes. However you might be able to get more advice about Debug Server Scripting in the Code Composer Studio forum I think.

    Regards,
    Katie

  • Great! That looks promising, I'll dig into it. Thank you Katie!

**Attention** This is a public forum