NO

Author Topic: Switch between Release, Debug or Profile build  (Read 25597 times)

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Switch between Release, Debug or Profile build
« on: November 27, 2004, 11:24:31 AM »
Extended version of the add-in that switches between debug and release build: third button for profile build (writes information to executable.prf when the program is run).

Author: Alexander Stoica
/Pelle

JohnF

  • Guest
Re: Switch between Release, Debug or Profile build
« Reply #1 on: November 27, 2004, 12:07:36 PM »
Quote from: "Pelle"
Extended version of the add-in that switches between debug and release build: third button for profile build (writes information to executable.prf when the program is run).

Author: Alexander Stoica


Very nice!

John

Mike Henning

  • Guest
Switch between Release, Debug or Profile build
« Reply #2 on: November 28, 2004, 01:57:27 AM »
I agree, very nice! Is there a separate viewer available that will parse the log file and compute the totals, percentages and that sort of thing?

Thanks,
Mike H.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Switch between Release, Debug or Profile build
« Reply #3 on: November 28, 2004, 09:44:58 PM »
Quote from: "Mike Henning"
I agree, very nice! Is there a separate viewer available that will parse the log file and compute the totals, percentages and that sort of thing?

Not that I'm aware of. A more 'visual' presentation has been on my wishlist for years, but no time so far. Maybe someone else...?

Pelle
/Pelle

nitex

  • Guest
Switch between Release, Debug or Profile build
« Reply #4 on: December 23, 2004, 07:05:48 PM »
i have started developing a *.prf viewer for pelles c. it is still in a very early state. i will publish a first version here when finished.

greets alex

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Switch between Release, Debug or Profile build
« Reply #5 on: December 23, 2004, 08:58:34 PM »
Quote from: "nitex"
i have started developing a *.prf viewer for pelles c. it is still in a very early state. i will publish a first version here when finished.

Great! Looking forward to seeing it...

Pelle
/Pelle

nitex

  • Guest
Switch between Release, Debug or Profile build
« Reply #6 on: January 14, 2005, 06:03:21 PM »
here is a first screenshot of the prf view program i'm currently writing.

the program is based on internet explorer, this allows writing report generation templates with some knowledge in html, css and javascript and the program can be integrated with a addin into the pelles c ide for easy access.

i will realease it as freeware until i have finished implementing all the stuff i want and after that with full sourcecode so that it can be enhanced by other people.

greets, alex

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Switch between Release, Debug or Profile build
« Reply #7 on: January 14, 2005, 06:44:03 PM »
Cool !!!  :D  :D

Pelle
/Pelle

Anonymous

  • Guest
Switch between Release, Debug or Profile build
« Reply #8 on: January 21, 2005, 06:53:20 PM »
PRF View Alpha Build 1 Readme (21.01.05)

here is a first alpha build of PRF View. please note that this is no final version and may contain bugs which i haven't found yet. i would like to hear some comments about the parsing performance on big projects. may be someone can post a big profiler log as zip file in the forum.

requirements:

the program was successfully tested on Win98 SE / IE 6 and WinXP Pro SP2 / IE 6. if you're getting script errors or some menu commands do not work it is probably because of an old browser version.

Quote
options:

- "use owner drawn menus"
self-instructional

- "print background colors and pictures"
this is the same option like in internet explorer. if not activated you won't see the colored charts if you print a report.

- "register *.prf files with PRF View"
allows you to doubleclick a prf file if activated. if you deactivate this option, PRF View will restore the extension to internet explorer (PICS Rules File).

missing:

 - new window command
 - template library and support
 - statusbar has no useful implementation
 - mru list
 - addin for pelles c ide
 - help
 - better error checking
 - better path handling

known problems:

 - can't handle paths longer than MAX_PATH (260)



if you find bugs or have ideas for additional features you may post them
in the forum:

  http://smorgasbordet.com/phpBB2/viewtopic.php?t=257

or you can write a mail to:

  nitex@freenet.de

and now, happy profiling.

  Alexander Stoica

nitex

  • Guest
Switch between Release, Debug or Profile build
« Reply #9 on: January 21, 2005, 06:59:24 PM »
i forgot to login, sorry.

TBD

  • Guest
bug?
« Reply #10 on: January 22, 2005, 07:38:09 AM »
Error: Unable to parse file contents!

.prf file:
Code: [Select]

2005-01-22, 08.11.55:
 7150 ms,       1 time(s): address 00401000
  321 ms,     297 time(s): address 004010b2
  230 ms,    2325 time(s): address 0040129e
  180 ms,       4 time(s): address 0040116c
    0 ms,     297 time(s): address 00401148

TBD

  • Guest
Switch between Release, Debug or Profile build
« Reply #11 on: January 22, 2005, 07:42:26 AM »
after playing a bit with the settings, I get this .prf file but with the same error - Unable to parse file contents!

Code: [Select]


2005-01-22, 08.40.37:
 4908 ms,       1 time(s): _WinMain@16
  260 ms,     273 time(s): _LV_InsertItem
  160 ms,       3 time(s): _sql_search@4
   60 ms,    2201 time(s): _MainDlgProc@16
    0 ms,     273 time(s): _sql_callback

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Switch between Release, Debug or Profile build
« Reply #12 on: January 27, 2005, 12:27:19 AM »
Browsing to a different directory than where prfview.exe lives, will give the "Unable to parse file contents!" error. Seems like a problem with the "current directory".

I copied the attached file (pocc.prf) to the same directory as prfview.exe, then I can get a bit further - but soon I get a script error:

Line: 55
Char: 19
Error: 'prf[...].ftime.length' is null or not an object
Code: 0
URL: file://C:\prfview\templates\standard.html

Any ideas?

Pelle
/Pelle

nitex

  • Guest
Switch between Release, Debug or Profile build
« Reply #13 on: January 28, 2005, 05:47:22 PM »
Sorry, for the directory problem, here is the second alpha. I used relative pathnames in the code, so the current directory was wrong.

Quote
Edit: I removed the alpha2, i have zipped the wrong executable. I will post correct version in some days.


To Pelle: The problem with your file is that i'm checking for a @ char in the function name. I will fix this in next version.
Greets Alex

TBD

  • Guest
Switch between Release, Debug or Profile build
« Reply #14 on: January 28, 2005, 05:55:53 PM »
still "Unable to parse file contents!" :(
I moved in the prfview directory - same error.

what should I try else ?