Solved

Word for a logic path execution counter?

Posted on 2013-01-23
6
285 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now