文章
· 一月 18, 2023 阅读大约需 3 分钟

第四十九章 使用 ^SystemPerformance 监视性能 - 复制配置文件

第四十九章 使用 ^SystemPerformance 监视性能 - 复制配置文件

复制配置文件

可以使用以下 API 命令将现有配置文件复制到具有不同名称的文件:

set rc=$$copyprofile^SystemPerformance("sourceprofilename","targetprofilename")

必须指定:

  • sourceprofilename - 现有配置文件的名称
  • targetprofilename - 要创建的配置文件的名称。这必须用双引号引起来。

如果成功,该函数返回 1。如果不成功,它返回一个 0 后跟一个 carat 和任何错误的原因。

其中 sourceprofilename 是现有配置文件的名称,targetprofilename 必须是唯一的并且不能包含空格或空白字符。

例如,要复制 2minrun 配置文件,请输入以下内容:

set rc=$$copyprofile^SystemPerformance("2minrun","5minrun")

下次运行 ^SystemPerformance 实用程序时,配置文件列表包括以下配置文件名称和说明:

2minrun     A 2-minute run sampling every 30 seconds
5minrun     A 2-minute run sampling every 30 seconds

现在可以按照本指南这一部分的编辑配置文件中的说明编辑新配置文件。

删除配置文件

可以使用以下 API 命令删除现有配置文件(预定义的“测试”配置文件除外):

set rc=$$delprofile^SystemPerformance("profilename")
  • profilename - 要删除的配置文件的名称。这必须用双引号引起来。

如果成功,该函数返回 1。如果不成功,它返回一个 0 后跟一个 carat 和任何错误的原因。

例如,要删除 2minrun 配置文件,请输入以下内容:

set rc=$$delprofile^SystemPerformance("2minrun")

下次运行 ^SystemPerformance 实用程序时,配置文件列表不包括 2minrun 配置文件。

^SystemPerformance Utility 创建的性能报告

^SystemPerformance 实用程序生成特定于平台的报告,如本章所述。该报告分为几个部分,如下面的清单所示:

Configuration

IRISTEST3 on machine testsystem

Customer: InterSystems Development
License : 123456

InterSystems IRIS Version String: InterSystems IRIS for Windows (x86-32) 2018.1 (Build 508) Fri Jan 26 2018 17:51:22 EDT
--------------------------------------------------------------
Profile

Profile run "test" started at 10:07 on Jun 01 2016.
Run over 10 intervals of 30 seconds.
--------------------------------------------------------------
license

Product=Enterprise
License Type=Concurrent User
Server=Multi
Platform=Heterogeneous
Licensed Users=1000
Licensed CPUs=16
.
.
.
--------------------------------------------------------------
End of InterSystems IRIS Performance Data Report

本节中的表格描述了每个特定于平台的报告的部分。这些部分在每个表中按字母顺序列出,以帮助您更轻松地找到特定部分。仅收集一次的数据标有星号 (*)。其余数据是在整个配置文件运行过程中收集的。

注意:在以下所有表格中,标有 * 的数据每次运行收集一次。

讨论 (0)1
登录或注册以继续