diag captureSlowFrame: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|gr2= Performance Logging" to "|gr2= Performance Profiling")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma2oa
|game1= arma2oa


|1.63
|version1= 1.63
 
|game2= tkoh
 
|version2= 1.00
 
|game3= arma3diag
 
|version3= 1.00


|gr1= Diagnostic
|gr1= Diagnostic
Line 9: Line 17:
|gr2= Performance Profiling
|gr2= Performance Profiling


| [[File:CaptureSlowFrame.jpg|right|200x120px]] Opens "capture frame" dialog if current frame exceeds set threshold in seconds. One can indicate to either capture duration of a specific profiling selection or the total duration of the frame. The selection names can be obtained by expanding the profiling tree. Clicking on a tree item will highlight the item on the graph and vice versa. The GUI also provides method of copying of the displayed data to clipboard. Some of the selections:
|descr= [[File:CaptureSlowFrame.jpg|right|200x120px]] Opens "capture frame" dialog if current frame exceeds set threshold in seconds. One can indicate to either capture duration of a specific profiling selection or the total duration of the frame. The selection names can be obtained by expanding the profiling tree. Clicking on a tree item will highlight the item on the graph and vice versa. The GUI also provides method of copying of the displayed data to clipboard. Some of the selections:
''Render''
''Render''
<br> - '''bgD3D'''
<br> - '''bgD3D'''
Line 20: Line 28:
<br> - '''Mjob'''
<br> - '''Mjob'''


'''Note''': Only available in specific builds. See [[Performance Profiling]] for details.
{{Feature|arma3|Only available in specific builds. See [[Performance Profiling]] for details.}}


| '''diag_captureSlowFrame''' [section, threshold]
|s1= '''diag_captureSlowFrame''' [section, threshold]


|p1= section: [[String]] - (case sensitive)
|p1= section: [[String]] - (case sensitive)
Line 28: Line 36:
|p2= threshold: [[Number]] - Duration of the section in seconds
|p2= threshold: [[Number]] - Duration of the section in seconds


| [[Nothing]]
|r1= [[Nothing]]
   
   
|x1= <code>[[diag_captureSlowFrame]] ['total',0.003];</code>
|x1= <code>[[diag_captureSlowFrame]] ['total',0.003];</code>
|x2= <code>[[diag_captureSlowFrame]] ['memAl', 0.0001];</code>
|x2= <code>[[diag_captureSlowFrame]] ['memAl', 0.0001];</code>


|seealso= [[Performance Profiling]], [[diag_captureFrame]], [[diag_logSlowFrame]]
|seealso= [[Performance Profiling]], [[diag_captureFrame]], [[diag_logSlowFrame]]
}}
}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}

Revision as of 23:38, 28 March 2021

A2 OA Logo.png1.63tkoh logo small.png1.00-wrong parameter ("arma3diag") defined!-[[:Category:Introduced with arma3diag version 1.00|1.00]]
Hover & click on the images for description

Description

Description:
CaptureSlowFrame.jpg
Opens "capture frame" dialog if current frame exceeds set threshold in seconds. One can indicate to either capture duration of a specific profiling selection or the total duration of the frame. The selection names can be obtained by expanding the profiling tree. Clicking on a tree item will highlight the item on the graph and vice versa. The GUI also provides method of copying of the displayed data to clipboard. Some of the selections:

Render
- bgD3D
Main Thread
- total
- memAl
Visualize
- visul
Mjob
- Mjob

Arma 3
Only available in specific builds. See Performance Profiling for details.
Groups:
DiagnosticPerformance Profiling

Syntax

Syntax:
diag_captureSlowFrame [section, threshold]
Parameters:
section: String - (case sensitive)
threshold: Number - Duration of the section in seconds
Return Value:
Nothing

Examples

Example 1:
diag_captureSlowFrame ['total',0.003];
Example 2:
diag_captureSlowFrame ['memAl', 0.0001];

Additional Information

See also:
Performance Profilingdiag_captureFramediag_logSlowFrame

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

[[ Category: arma3diag: Scripting Commands | DIAG CAPTURESLOWFRAME]]