Solved

Word for a logic path execution counter?

Posted on 2013-01-23
6
281 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
Comment Utility
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
Comment Utility
path tracker
0
 
LVL 27

Assisted Solution

by:d-glitch
d-glitch earned 100 total points
Comment Utility
These are frequently called loop counters
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:RonMexico
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is an explanation of a simple data model to help parse a JSON feed
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 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

9 Experts available now in Live!

Get 1:1 Help Now