Path: utzoo!attcan!uunet!tektronix!tekig5!philj From: philj@tekig5.PEN.TEK.COM (Phil Jansen) Newsgroups: comp.sys.mac.programmer Subject: LightSpeed C profiler problem Keywords: LightSpeed, C, profiler, problem, need help, recursion Message-ID: <3452@tekig5.PEN.TEK.COM> Date: 10 Nov 88 00:26:25 GMT Organization: Tektronix Inc., Beaverton, Or. Lines: 43 Hello there. I've been trying to use the LightSpeed C 3.01 profiler for a class I'm taking. Unfortunately, I don't trust the answers it gives me. Are there people out there who have used it enough to help me out? Details: I have been timing several sorting algorithms, some of which call other functions, or call themselves recursively. Usually the profiler will not include sub-function times in the total function time, but in my case I needed the total time including sub-function calls. Both before and after disabling this feature, these functions gave slower times than non-recursive functions (e.g. Quicksort was 10x slower than Bubblesort!) -------------- Also, I tried running some simple in-line function calls, but the profiler only printed the results of *some* of the functions! All the functions were in the same file (compiled with the profiler option on). Eventually I gave up on the profiler and used TickCount() to get my times. [It sure wasn't easy to find where the definition for TickCount() was (No, it is not in time.h).] Any ideas what I'm doing wrong? Thank you for your help. Phil Jansen -- Phil Jansen If you repeat things often enough, they become true. philj@tekig5 If you repeat things often enough, they become true. If you repeat things often enough, they become true.