User Tools

Site Tools


en:tutorials:tools:profiler

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:tutorials:tools:profiler [2018/12/14 11:53 (10 months ago)]
sausage
en:tutorials:tools:profiler [2019/06/15 11:48 (4 months ago)]
sausage
Line 1: Line 1:
 ====== The Orx Profiler ====== ====== The Orx Profiler ======
  
-Every application that is built using Orx contains a profiler tool. The Profiler is compiled-in when using either debug or release ​modes.+Every application that is built using Orx contains a profiler tool. The Profiler is compiled-in when using either debug or profile ​modes.
  
 {{ :​en:​tutorials:​tools:​profiler.png?​direct |}} {{ :​en:​tutorials:​tools:​profiler.png?​direct |}}
Line 43: Line 43:
  
 ==== 1) Thread Frame bar ==== ==== 1) Thread Frame bar ====
-This grey bar indicates which thread is currently selected. Most of Orx's tasks run on the main thread. There are other threads that handle things like streaming audio, resource requests and bitmap ​decompressing which run on other threads. Select your thread with the ''​Page Up''​ and ''​Page Down''​ keys.+This grey bar indicates which thread is currently selected. Most of Orx's tasks run on the main thread. There are other threads that handle things like streaming audio, resource requests and bitmap ​decompression. Select your thread with the ''​Page Up''​ and ''​Page Down''​ keys.
  
 {{ :​en:​tutorials:​tools:​thread-bar.png?​direct |}} {{ :​en:​tutorials:​tools:​thread-bar.png?​direct |}}
Line 87: Line 87:
 The first group of numbers represents the number of live allocations and the second number is the max allocations in the past. The first group of numbers represents the number of live allocations and the second number is the max allocations in the past.
  
-The second group of numbers is the same, but is now representing the size of the memory allocations ​in Megabytes.+The second group of numbers is the same, but is now representing the size of the memory allocations.
  
 The last number shows the amount of transactions since the beginning of the application. A transaction is the allocating or de-allocating of memory. The last number shows the amount of transactions since the beginning of the application. A transaction is the allocating or de-allocating of memory.
Line 124: Line 124:
  
 And that is the Orx Profiler. This tool should be invaluable for checking the health of your application and to help you optimize it. And that is the Orx Profiler. This tool should be invaluable for checking the health of your application and to help you optimize it.
 +
 +
 +===== Choosing the Profile Orientation =====
 +
 +The Profiler orientation can be set as either portrait or landscape. Landscape is the default. You can see the ''​ShowProfiler''​ and ''​ProfilerOrientation''​ properties available for the Profiler in the [[en:​orx:​config:​settings_main:​main#​render_module|Render Config Properties]]:​
 +
 +{{section>​en:​orx:​config:​settings_main:​main#​[summary11]&​noheader&​nofooter&​noeditbutton}} ​
 +
 +You can set to portrait with:
 +
 +<​code=ini>​
 +[Render]
 +ProfilerOrientation = portrait
 +</​code>​
 +
 +{{ :​tutorials:​profiler-portrait.png?​nolink |}}
 +
 +This rotates the profiler to the left, perfect for portrait monitors.
en/tutorials/tools/profiler.txt ยท Last modified: 2019/06/15 11:48 (4 months ago) by sausage