⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 performancecounter.srf

📁 Vc.Net入门与提高源码
💻 SRF
字号:
<html>
	<HEAD>
	</HEAD>
	<BODY>
		<p>
			<FONT face=Arial> {{// use MSDN's "ATL Server Response File Reference" to learn about SRF files.}} {{handler PerformanceCounter.dll/Default}}<b>{{SampleTitle}}</b></FONT></p>
		<p>
			<FONT face=Arial>This sample uses ATL's performance monitoring support&nbsp;demonstrate performance counters within an&nbsp;ATL Server application. Each of the buttons below is represented by two performance counters. The first counter tracks the rate at which the button is pressed, and the second tracks the total number of button presses.</FONT></p>
		<form id=FORM1 action="PerformanceCounter.srf" method=post>
			<input id=Submit1 type=submit value=Counter1 name=Submit1><FONT face=Arial></FONT><input id=Submit2 type=submit value=Counter2 name=Submit2><FONT face=Arial></FONT><input id=Submit3 type=submit value=Counter3 name=Submit3><FONT face=Arial></FONT></form>
		<p>
			<FONT face=Arial>The counter values can be viewed using the Windows Performance Console (Start|Programs|Administrative Tools|Performance). Within the concole, click the ADD button (represented by a plus sign), and then&nbsp;select the "PerformanceCounterSample" in the Performance Object drop box. Then select the All Counters and All Instances radio buttons, and press the Add button.</FONT></p>
		<p>
			<FONT face=Arial>The Performance Console will then&nbsp;display the six counter values (two counters for each of the three buttons on this page). Pressing a button will increment the button's counters.</FONT></p>
		<P>
			<FONT face=Arial>
				<SPAN class=432542623-25042001>
					No luck finding or displaying the data in the Performance Console?
				</SPAN>
				<SPAN class=432542623-25042001>
					Make sure the PerformanceCounterIsapi DLL is registered using<STRONG>regsvr32</STRONG>. Still not working? See the PerformanceCounter Sample in MSDN for trouble-shooting steps.</SPAN>
			</FONT></P>
		<p>
			<FONT face=Arial></FONT></p>
	</BODY>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -