Re: [ANN]ProDelphi 18.3 released (runtime measurement)



I've just started the AppClient demo under Sampling Profiler (with "Ignore
TApplication.Idle OS Time"), run "User Flood Test" with auto-repeat,
minimized the app and run it for 3 minutes. CPU usage was at 100% for the
duration of the test.

This is what came out
(from relevant to less relevant) ...

Modules (global times in %)
-----------------------------------------
48% ntdll.dll => called from
- 16,37% TWinControl.DeaultHandler
- 6,73% TCanvas.GetHandle
- 5,00% TWinControl.WndProc
- 3,39% TCustomLabel.AdjustBounds
- 3,16% FindVCLWindow
- 2,34% SysFreeMem
- 2,30% TApplication.ProcessMessages
- 1,64% SysGetMem
- 1,58% FindControl

37% AppClient.exe => units
- 21,49% System
- 4,34% Controls
- 2,29% SysUtils
- 1,96% rtcInfo (rtc unit)
- 1,36% Classes
- 1,01% Graphics
- 0,97% Forms
- 0,66% StdCtrls
- 0,61% rtcCliModule (rtc unit)
- 0,52% rtcCrypt (rtc unit)
- 0,34% memPtrPool (rtc unit)
- 0,31% AppClient_Unit (app unit)

Procedures (global times in %)
----------------------------------------------
8,78% GetDynaMethod => called from
- 8,34% TObject.Dispatch
- 0,44% @CallDynaInst

1,98% SysGetMem => called from
- 0,96% System.@GetMem
- 0,38% System.@ReallocMem
- 0,22% System.SysGetMem
- 0,09% Controls.TWinControl.WndProc

1,35% @LStrArrayClr => called from
- 0,24% rtcInfo.TRtcHttpValues.PrepareValues
- 0,14% rtcInfo.TRtcFloatValue.from_code
- 0,09% Variants@VarToLStr
- 0,09% rtcInfo.StrToType
- 0,09% rtcInfo.TRtcRecord.GetObject
- 0,09% rtcInfo.TRtcValueObject.fromShortString

1,20% SysFreeMem => called from
- 1,12% System.@FreeMem
- 0,05% System.@ReallocMem
- 0,02% System.InternalFreeMem
- 0,01% SysReallocMem

0,96% Move => called from
- 0,37% System.@LStrFromPCharLen
- 0,15% AppClient_Unit.TForm1.Edit1Change
- 0,13% rtcCliModule.TRtcClientModule.Call_DataReceived
- 0,10% AppClient_Unit.TForm1.Edit4Change
- 0,05% System.@LStrAsg
- 0,04% System.@LStrCatN
- 0,03% System.@LStrCat
- 0,03% SysUtils.StrMove

0,83% TObject.InitInstance
0,70% TControl.WndProc
0,58% InsertFree
0,55% TextToFloat
0,53% @LStrAsg
0,52% TRtcCrypt.DeCrypt
0,40% SearcgSmallBlocks
0,39% TWinControl.DefaultHandler
---------------------------------------------------

See any improvement possibilities?

--
Danijel Tkalcec
http://www.deltasoft.hr/rtc/author.htm

RealThinClient components
-------------------------------------------
* The Easiest way to build Internet-enabled applications
- Clients, Stand-alone Servers, ISAPI extensions -
> Write and Call Remote Functions
> Download and Upload Files
> Single- and Multi-Threaded mode
> Firewall friendly - all over HTTP
> Stress-tested for highest stability

http://www.realthinclient.com
or www.deltasoft.hr/rtc


.