May 20, 2024, 03:50:34 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Program Efficiency

Started by CodeTRUCKER, January 06, 2008, 08:18:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CodeTRUCKER

I was wondering if there is a "tester" or utility in EBASIC that could test the efficiency of my program source code.  The idea is to find any unused variables, subs, etc.  It would also be good to see a graph of how many milliseconds were spent on each line of code. It seems like something that might already be in the Debug Builds, but I haven't found it yet?

Is this available for EBASIC?
Calvin Waterbury


Truth, unlike opinion, tradition, etc. will always be able to stand on its own.  Truth is not a static, but a living entity and will perpetually impart life; therefore, any "truth" that does not or can not impart life can not be Truth.

Ionic Wind Support Team

Nope.  What you are looking for is code profiling, something very complicated to write, although it isn't hard to time a subroutine.

Paul.
Ionic Wind Support Team

CodeTRUCKER

Quote from: Paul Turley on January 06, 2008, 09:07:58 PM
Nope.  What you are looking for is code profiling, something very complicated to write...
Is this something that will be coming in the future, if so is there a time frame?

Quote
... although it isn't hard to time a subroutine.

Paul.

How would you suggest doing this?   BTW - Thanks for the reply!

Calvin Waterbury


Truth, unlike opinion, tradition, etc. will always be able to stand on its own.  Truth is not a static, but a living entity and will perpetually impart life; therefore, any "truth" that does not or can not impart life can not be Truth.

mrainey

Software For Metalworking
http://closetolerancesoftware.com

CodeTRUCKER

Quote from: mrainey on January 07, 2008, 06:00:30 AM
Some background.

http://www.gnu.org/software/binutils/manual/gprof-2.9.1/html_mono/gprof.html#SEC24


Thanks Michael. - I haven't figured it all out yesterday and I get the logic.  I was thinking about doing the kind of the same thing with a modified "DEBUGPRINT" if I could get tit to work? ???

I've also noticed you are still a big fan of UltraEDIT.  I am giving the UE Studio for programmers a whirl.
Do you know anything about the UES? 
How do I get the editor to use the syntax coloring? 
Is there a separate d/l for EBASIC users?

Wow! lots of questions.... hope you don't mind?
Calvin Waterbury


Truth, unlike opinion, tradition, etc. will always be able to stand on its own.  Truth is not a static, but a living entity and will perpetually impart life; therefore, any "truth" that does not or can not impart life can not be Truth.

mrainey

Software For Metalworking
http://closetolerancesoftware.com

CodeTRUCKER

Quote from: mrainey on January 07, 2008, 03:03:36 PM
Download this.

http://mrainey.freeservers.com/Miscellaneous/syntax.zip



If I can make any reasonable improvements in the wordfile.txt excerpt, I'll be sure and pass them along, but right now I can't even find the compiler path?!?

PS - Check your PM.
Calvin Waterbury


Truth, unlike opinion, tradition, etc. will always be able to stand on its own.  Truth is not a static, but a living entity and will perpetually impart life; therefore, any "truth" that does not or can not impart life can not be Truth.