Re: small suggestion
Simon Dawson <[email protected]> Sun, 14 Nov 2004 08:45:45 +1300
| Newsgroups | gmane.comp.windows.dotnet.nprof.devel |
|---|---|
| Message-ID | <[email protected]> |
Thanks for the quick reply Matt That does sound ideal. How complex is it to get the start/stop commands in there? Another thought (well in the 'obvious' category here).. how often do you run the profiler over the profiler? At the moment it seems to be timing in at about 16 times slower, running code with nprof active (at least, on the loop code I have here).. heh, of course, with my profiling hat on, the first thing I think is "hmm, wonder if that could be made any faster".. D/led the source and had a look at it, but it's complex enough (plus, my C isn't that strong) that after a couple of hours of looking at it, I still wasn't -that- sure what was going on. Si At 05:03 14/11/2004, you wrote: >The ideal way will be when I managed to get profiler start/stop commands working. You should be able to call them from your code to start profiling right away and/or set up triggers on certain method calls for profiling events (ie: start profiling when method XYZ is run). > >Matt. > >Simon Dawson wrote: > >>Hi There >> >>Thanks for writing nprof, it's the best .NET profiler I've found. >>The main reason (other than supporting open source) is that it's damn efficient. Some profilers (eg compuware's community version) run at 1/40th of the normal run speed. nprof is a damn sight faster. Since I have an app that spends 60 seconds hitting a database when it starts, I'm damn grateful for that efficiency. :) >> >>Anyway, one small thought. One thing I have -not- been able to find in -any- profiler, is the ability to select which routines I wish to profile. I can only profile the entire app at a time. Now, on some you can select which .exe's.. but unless I'm going to refactor an entire app so one small routine is in its own exe, that's pretty impractical. >> >>For example, in the app I'm running, it does a large amount of database hits (loading several million rows), which I've already optimised about as far as sql/c# will go. So, I don't care about that any more. However, I -do- know I have one little routine that is -really- slow (that after I've done the database loading then runs for hours), and I'd like to find out what's going on there in intricate depth. However, there's nothing that I've found that will let me do that. >> >>How much work would it be to get nprof to do that? If you could do it, that would certainly put nprof a head and shoulders above ALL the competition. >> >>Best Regards >> >>Simon >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: InterSystems CACHE >>FREE OODBMS DOWNLOAD - A multidimensional database that combines >>robust object and relational technologies, making it a perfect match >>for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 >>_______________________________________________ >>Nprof-developers mailing list >>Nprof-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org >>https://lists.sourceforge.net/lists/listinfo/nprof-developers >> >> > > ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8