Solved

Word for a logic path execution counter?

Posted on 2013-01-23
6
286 Views
Last Modified: 2013-02-10
Hello, I'm proposing a debugging/profiling technique in which we set up some add'l variables that count the number of times a certain logic path is executed within  our code.

For reasons I won't bore you with (I'm trying to persuade people to make a little effort to use these), I feel like what I call this type of variable will be important.  

Counters?
Turnstiles?
Events?
PathExecutionCounters?

I feel like there is some computer-science-y technical term out there that I should be using, but otherwise I'd like to think of a snappy term that immediately calls to mind its purpose (whether literal or by analogy).

(Oddball question I know, but you guys have generally knocked these out of the park.)

Thanks!
0
Comment
Question by:RonMexico
6 Comments
 
LVL 37

Accepted Solution

by:
TommySzalapski earned 200 total points
ID: 38811523
Any reason you are building these variables into your code instead of using a profiler that does all that for you? There are many profilers out there already and you won't have to worry about corner cases where you forgot to put your counters.

Off the top of my head, I'd call them "iteration counters."
0
 
LVL 27

Assisted Solution

by:aburr
aburr earned 100 total points
ID: 38811524
path tracker
0
 
LVL 27

Assisted Solution

by:d-glitch
d-glitch earned 100 total points
ID: 38811584
These are frequently called loop counters
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

Author Comment

by:RonMexico
ID: 38811625
Thanks for the good responses, I'll keep this open a bit.

@TommySzalpaski: interesting, do they have these for straight embedded C programming (no OS)?  Or are they debugger based?  I'm thinking about something that is always in there, and you can query these values via a serial port at any time.  But I'd like to look into profilers, for sure.
0
 
LVL 37

Assisted Solution

by:TommySzalapski
TommySzalapski earned 200 total points
ID: 38811769
There are some that are designed to work in embedded environments. I did a Google search for "embedded C profiler" and saw several promising links. One of the articles is from someone describing how he made his own
http://www.blisstonia.com/eolson/notes/profile_arm.php
If one of the off-the-shelf ones (like embeddedprofiler.com) doesn't work, you could try that approach. It would be a lot better (in my opinion) then trusting all the developers to add the right "event counters."
0
 
LVL 32

Assisted Solution

by:phoffric
phoffric earned 100 total points
ID: 38812094
For some of my projects we purchased a product that would "instrument" all or parts of our source code files (our choice) to perform run-time checks. Immediately after each compilation, the source code was restored to its original state. Generally, unless there is a strong need, the instrumented code should be removed when programs go into production. (This was especially true for embedded real-time boxes.)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an explanation of a simple data model to help parse a JSON feed
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question