Performance is important factor for server management. In Windows family operating system we can use wpr
tool to save and monitor performance metrics. wpr
means Windows Performance Reporting. This tools can save the specified topic performance metrics.
性能是服务器管理的重要因素。 在Windows家族操作系统中,我们可以使用wpr
工具来保存和监视性能指标。 wpr
表示Windows性能报告。 该工具可以保存指定的主题性能指标。
句法 (Syntax)
The syntax of wpr
command is like below.
wpr
命令的语法如下。
wpr OPTIONS
列出绩效概况 (List Performance Profiles)
A regular server consist of different hardware and operating system components. We can get report about these components by specifying their metric.There are different type of performance profiles those have get metrics of specific components. We can list those profiles with -profiles
option.
常规服务器由不同的硬件和操作系统组件组成。 我们可以通过指定这些组件的指标来获取有关这些组件的报告。有不同类型的性能配置文件可以获取特定组件的指标。 我们可以使用-profiles
选项列出这些配置文件。
> wpr -profiles

开始演奏记录(Start Performance Recording)
In order to get performance information we should start a profile. This will save performance metrics of given profile. We will use -start
option. In this example we will start recording of Network
performance metrics.
为了获得性能信息,我们应该启动一个配置文件。 这将保存给定配置文件的性能指标。 我们将使用-start
选项。 在此示例中,我们将开始记录Network
性能指标。
> wpr -start NETWORK
停止表演记录 (Stop Performance Recording)
In order to analyse metrics we should stop and save the recorded metrics. We can use -stop
to stop and save recorded metrics. In this example we stop NETWORK
profile metrics.
为了分析指标,我们应该停止并保存记录的指标。 我们可以使用-stop
停止并保存记录的指标。 在此示例中,我们停止NETWORK
配置文件指标。
> wpr -stop NETWORK
取消演奏记录 (Cancel Performance Recording)
If we do not need currently running profile metrics we should simply cancel it. We will use -cancel
option. In this example we cancel the recording of NETWORK
profile.
如果我们不需要当前正在运行的配置文件指标,则只需取消它即可。 我们将使用-cancel
选项。 在此示例中,我们取消了NETWORK
配置文件的记录。
> wpr -cancel NETWORK
状态绩效记录 (Status Performance Recording)
We can not run multiple recording of same profile. We can check given profile recording status whether it is running or not with -status
option. In this example we check the status of NETWORK
profile.
我们不能运行同一个人资料的多个记录。 我们可以使用-status
选项检查给定的概要文件记录状态是否正在运行。 在此示例中,我们检查NETWORK
配置文件的状态。
> wpr -status NETWORK
列出个人资料详细信息 (List Profile Details)
If we want to get more information about the profiles what kind of metrics they will record we can use -profiledetails
option. In this example we will get profile details of NETWORK
profile.
如果要获取有关概要文件的更多信息,它们将记录哪种度量标准,可以使用-profiledetails
选项。 在此示例中,我们将获得NETWORK
配置文件的配置文件详细信息。
> wpr -profiledetails NETWORK