| 1 |
<?xml version="1.0" encoding="utf-8"?> |
|---|
| 2 |
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="init()"> |
|---|
| 3 |
<mx:Script source="ThreadViewer.as"/> |
|---|
| 4 |
<mx:Style source="style.css"/> |
|---|
| 5 |
<mx:VBox width="100%" height="100%"> |
|---|
| 6 |
<mx:Canvas width="100%" height="48"> |
|---|
| 7 |
<mx:Button x="8" y="8" id="bRecordStop" styleName="RecordStopIconBtn" toggle="true" toolTip="Record" click="bRecordStop_ClickHandler(event)"/> |
|---|
| 8 |
<mx:Label id="tElapseTime" x="48" y="15" text="00:00:00.000" styleName="TimeLabel"/> |
|---|
| 9 |
<mx:Button id="bClear" x="174" y="11" click="bClear_ClickHandler(event)" styleName="ClearIconBtn" toolTip="Clear record"/> |
|---|
| 10 |
<mx:Label x="210" y="14" text="Interval Time:" styleName="InfoLabel"/> |
|---|
| 11 |
<mx:Label id="tElapseMax" x="314" y="14" text="Max 00.000" click="tElapseMax_ClickHandler(event)" styleName="InfoLabel"/> |
|---|
| 12 |
<mx:Label id="tElapseMin" x="404" y="14" text="Min 00.000" click="tElapseMin_ClickHandler(event)" styleName="InfoLabel"/> |
|---|
| 13 |
<mx:Label id="tElapseAve" x="490" y="14" text="Ave 00.000" styleName="InfoLabel"/> |
|---|
| 14 |
<mx:Label id="tFPS" x="580" y="14" text="FPS: 000" styleName="InfoLabel"/> |
|---|
| 15 |
<mx:Button id="bInfo" right="12" y="11" click="bInfo_ClickHandler(event)" styleName="InfoIconBtn" toolTip="Show information"/> |
|---|
| 16 |
<mx:HRule y="47" width="100%" strokeWidth="1" strokeColor="#555555"/> |
|---|
| 17 |
</mx:Canvas> |
|---|
| 18 |
<mx:Canvas width="100%" height="100%"> |
|---|
| 19 |
<mx:HDividedBox width="100%" height="100%"> |
|---|
| 20 |
<mx:VBox id="vbThread" width="150" height="100%" minWidth="150"> |
|---|
| 21 |
<mx:Canvas width="100%" height="100%" verticalScrollPolicy="off" horizontalScrollPolicy="off"> |
|---|
| 22 |
<mx:Canvas id="threadName"/> |
|---|
| 23 |
</mx:Canvas> |
|---|
| 24 |
<mx:HBox width="100%" height="18" verticalAlign="center"> |
|---|
| 25 |
<!-- mx:Image source="@Embed('icons/ZoomMin.png')" left="8"/ --> |
|---|
| 26 |
<mx:HSlider width="{vbThread.width}" height="100%" id="hsScale" minimum="0.25" maximum="4" snapInterval="0.25" value="1.0" change="hsScale_ChangeHandler(event)"/> |
|---|
| 27 |
<!-- mx:Image source="@Embed('icons/ZoomMax.png')" right="8"/ --> |
|---|
| 28 |
</mx:HBox> |
|---|
| 29 |
</mx:VBox> |
|---|
| 30 |
<mx:Canvas id="threadTimeContainer" width="100%" height="100%" verticalScrollPolicy="off"> |
|---|
| 31 |
<mx:Canvas id="threadTime"/> |
|---|
| 32 |
</mx:Canvas> |
|---|
| 33 |
</mx:HDividedBox> |
|---|
| 34 |
</mx:Canvas> |
|---|
| 35 |
<mx:Canvas width="100%" height="240"> |
|---|
| 36 |
<mx:ComboBox id="cbThread" left="8" y="10" width="142" close="cbThread_CloseHandler(event)"/> |
|---|
| 37 |
<mx:Form width="100%" x="0" y="40" indicatorGap="4"> |
|---|
| 38 |
<mx:FormItem label="Issue(time)"> |
|---|
| 39 |
<mx:TextInput id="tIssue" editable="false" width="54"/> |
|---|
| 40 |
</mx:FormItem> |
|---|
| 41 |
<mx:FormItem label="Elapse(ms)"> |
|---|
| 42 |
<mx:TextInput id="tElapse" editable="false" width="54"/> |
|---|
| 43 |
</mx:FormItem> |
|---|
| 44 |
<mx:FormItem label="Max(ms)"> |
|---|
| 45 |
<mx:TextInput id="tMaxTime" editable="false" width="54"/> |
|---|
| 46 |
</mx:FormItem> |
|---|
| 47 |
<mx:FormItem label="Min(ms)"> |
|---|
| 48 |
<mx:TextInput id="tMinTime" editable="false" width="54"/> |
|---|
| 49 |
</mx:FormItem> |
|---|
| 50 |
<mx:FormItem label="Average(ms)"> |
|---|
| 51 |
<mx:TextInput id="tAveTime" editable="false" width="54"/> |
|---|
| 52 |
</mx:FormItem> |
|---|
| 53 |
</mx:Form> |
|---|
| 54 |
<mx:HTML id="htmlState" left="160" y="10" width="260" height="220"/> |
|---|
| 55 |
<mx:HTML id="htmlTime" left="430" y="10" right="8" width="100%" height="220"/> |
|---|
| 56 |
</mx:Canvas> |
|---|
| 57 |
</mx:VBox> |
|---|
| 58 |
</mx:WindowedApplication> |
|---|