![MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Скачать руководство пользователя страница 387](http://html1.mh-extra.com/html/macromedia/coldfusion-4-5-cfml-language/coldfusion-4-5-cfml-language_reference_3287257387.webp)
Chapter 2: ColdFusion Functions
363
GetMetricData
On Windows NT, GetMetricData returns all the internal data that is otherwise
displayed in the Windows NT PerfMonitor. On UNIX, GetMetricData returns all of the
internal data found by using CFStat. For it to work on NT you need to have turned on
the PerfMonitor feature from the ColdFusion Administrator. See the Usage section for
details of the structure that this function returns.
Syntax
GetMetricData
(
monitor_name)
monitor_name
The name of the performance monitor. On Windows NT, the performance
monitor is PerfMonitor. On UNIX, it is CFStat.
Usage
On Windows NT, the function returns a ColdFusion structure with the following data
fields:
•
InstanceName
•
PageHits
•
ReqQueued
•
DBHits
•
ReqRunning
•
ReqTimedOut
•
BytesIn
•
BytesOut
•
AvgQueueTime
•
AvgReqTime
•
AvgDBTime
•
CachePops
Example
<!---------------------------------------------------------------------
This example gets and displays the metric data provided by Windows NT
PerfMonitor.
----------------------------------------------------------------------->
<CFSET pmData = GetMetricData( "PERF_MONITOR" ) >
<CFOUTPUT>
Current PerfMonitor data is: <P>
InstanceName: #pmData.InstanceName# <P>
PageHits: #pmData.PageHits# <P>
ReqQueued: #pmData.ReqQueued# <P>
DBHits: #pmData.DBHits# <P>
Содержание COLDFUSION 4.5-CFML LANGUAGE
Страница 1: ...Allaire Corporation CFML Language Reference ColdFusion 4 5...
Страница 207: ...Chapter 1 ColdFusion Tags 183 CFCATCH CFTRY BODY HTML...
Страница 224: ...200 CFMLLanguageReference CFOUTPUT P Text within CFOUTPUT is always shown CFOUTPUT BODY HTML...
Страница 296: ...272 CFMLLanguageReference INPUT TYPE text NAME number2 BR INPUT TYPE submit NAME submit VALUE Add FORM BODY HTML...
Страница 336: ...312 CFMLLanguageReference CFIF BODY HTML...
Страница 404: ...380 CFMLLanguageReference DE It is morning CFOUTPUT P BODY HTML...
Страница 413: ...Chapter 2 ColdFusion Functions 389 Customer BalanceDue BR CFOUTPUT CFIF BODY HTML...
Страница 483: ...Chapter 2 ColdFusion Functions 459 CFOUTPUT CFLOOP BODY HTML...
Страница 557: ...Chapter 2 ColdFusion Functions 533 P CFOUTPUT Value i is employee keysToStruct i CFOUTPUT P CFLOOP CFIF BODY HTML...
Страница 584: ...560 CFMLLanguageReference...
Страница 594: ...570 CFMLLanguageReference...