Re: Loop profiling



On Wed, 28 Mar 2007 16:43:34 +0000, Randy Howard wrote:


Any ideas? Right now, I help myself out with C macros but the
instrumentation is still very tedious.

Well, easy answer would be to write the loop iteration count statistics
to a log file, in a well-defined format that included the function
name, a line number, etc., then have another tool (or even
a shell script using grep intelligently) to pull the data back out and
present it in a more nicely formatted way.

Thank you for your ideas. But, as I understood your ideas, they all
expect the user to add some individual code for each loop under test.
That's what I'm currently doing, but for more complex applications
this becomes a tedious job. This was the reason why I was looking for
an automatic approach, something in the direction of gcov...

.



Relevant Pages

  • Re: Is a new CL standard possible?
    ... standardize iterate (with iterate, ... LOOP is standard. ... everything you can do with hygienic macros you can ...
    (comp.lang.lisp)
  • Re: Is a new CL standard possible?
    ... standardize iterate (with iterate, ... No, no, LOOP sucks. ... do with regular macros. ... When I said hygienic macros, ...
    (comp.lang.lisp)
  • Re: [PATCH 2/2] page table iterators
    ... Hugh Dickins wrote: ... but I do like to see what a loop is up to. ... the implementation of the macros is not insanely difficult ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Generating code which compiles to a jmphash
    ... A simple response of "learn to write macros" probably would not ... (defconstant dirs '(up down left right)) ... (defun all-moves () ... (loop for i from 0 to 4 ...
    (comp.lang.lisp)
  • Re: Walking a list
    ... doubly}-linked list (that might be circular) and at some point cleanly ... An awful lot of common idioms are covered by the ... mapcar or macros like dolist accommodate quite a lot of these ... did, I think because of LOOP has gained more foothold than it once had, ...
    (comp.lang.lisp)