Changeset 164 for MicroThreading/UMicroThreadList.pas
- Timestamp:
- Feb 8, 2011, 11:05:30 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MicroThreading/UMicroThreadList.pas
r162 r164 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 ExtCtrls, StdCtrls, DateUtils ;9 ExtCtrls, StdCtrls, DateUtils, UPlatform; 10 10 11 11 type … … 14 14 15 15 TMicroThreadListForm = class(TForm) 16 published 17 Label10: TLabel; 18 Label5: TLabel; 19 Label6: TLabel; 20 Label7: TLabel; 21 Label8: TLabel; 22 Label9: TLabel; 23 TimerRedraw: TTimer; 16 24 Label1: TLabel; 17 25 Label2: TLabel; 18 26 ListView1: TListView; 19 27 ListView2: TListView; 20 Panel1: TPanel; 21 Panel2: TPanel; 22 Splitter1: TSplitter; 23 TimerRedraw: TTimer; 28 PageControl1: TPageControl; 29 TabSheet1: TTabSheet; 30 TabSheet2: TTabSheet; 31 TabSheet3: TTabSheet; 32 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 24 33 procedure FormHide(Sender: TObject); 25 34 procedure FormShow(Sender: TObject); … … 57 66 ListView2.Items[-1]; 58 67 ListView2.Refresh; 68 69 Label6.Caption := IntToStr(GetLogicalProcessorCount); 70 Label9.Caption := IntToStr(MainScheduler.ThreadPoolCount); 71 Label10.Caption := IntToStr(MainScheduler.MicroThreadCount); 72 Label2.Caption := FloatToStr(MainScheduler.MainThreadOutsideDuration / OneMillisecond) + ' ms'; 59 73 end; 60 74 … … 120 134 end; 121 135 136 procedure TMicroThreadListForm.FormClose(Sender: TObject; 137 var CloseAction: TCloseAction); 138 begin 139 TimerRedraw.Enabled := False; 140 end; 141 122 142 123 143 end.
Note:
See TracChangeset
for help on using the changeset viewer.