18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix: Built-in Scripting Language<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag GetOS() //Returned value = 2<br />

GetPerformanceMetric<br />

The GetPerformanceMetric function returns selected metrics for the graphics performance of your project<br />

runtime client.<br />

Function Group Execution Windows Embedded Web<br />

GetPerformanceMetric System Info Synchronous Supported Supported Supported<br />

Syntax<br />

GetPerformanceMetric( numMetrictype, "optTagDescription" )<br />

GetPerformanceMetric({ numMetrictype | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12<br />

| 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30<br />

| 31 }{ | ,"optTagDescription" })<br />

numMetrictype<br />

The type of performance metric to get, as shown in the table below:<br />

Value of numMetrictype<br />

Description, including the string that is written to optTagDescription<br />

0 Memory Allocation Enabled<br />

How the virtual memory is currently allocated to shared objects: 0 = Disabled; 1 = Always; 2 = Dynamic; 3 =<br />

Critical.<br />

Disabled<br />

Always<br />

Dynamic<br />

Critical<br />

1 Critical Free Memory Limit (KB)<br />

The Enable memory allocation option (Project Settings > Options ><br />

Performance Control) is not selected. Objects are loaded into memory<br />

only when they are actually used, and then they are immediately removed<br />

afterwards.<br />

Objects are always kept in memory, in order to increase run-time<br />

performance.<br />

Objects are kept in memory until the memory is needed for new objects.<br />

If enough memory is freed, then the memory allocation state may return<br />

from Dynamic to Always.<br />

All unused objects are cleared from memory and memory allocation<br />

is disabled until the project is restarted. This is effectively the same as<br />

Disabled (see above), except that the Enable memory allocation option<br />

is still selected.<br />

When the amount of free virtual memory (in KB) decreases to this limit, the memory allocation state is changed<br />

from Dynamic to Critical.<br />

This limit is set in Project Settings > Options > Performance Control.<br />

2 Min Free Memory Limit (KB)<br />

When the amount of free virtual memory (in KB) decreases to this limit, the memory allocation state is changed<br />

from Always to Dynamic.<br />

This limit is set in Project Settings > Options > Performance Control.<br />

3 Free Memory (KB)<br />

<strong>InduSoft</strong> Web Studio Page 665

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!