跳转至

MstxMonitor.enable_domain

Product Support

Note: For details about Ascend product models, see Ascend Product Models.

Product Type Supported
Ascend 950 products
Atlas A3 training products/Atlas A3 inference products
Atlas A2 training products/Atlas A2 inference products
Atlas 200I/500 A2 inference products
Atlas inference products ×
Atlas training series products ×

Function Usage

Enables the collection of dotting data in the corresponding domain.

Function Prototype

def enable_domain(self, domain_name: str):

Parameter Description

Parameter Name

Input/Output

Description

domain_name: str

Input

indicates the name of the dotting field.

can call the API for multiple times to enable data collection in multiple fields. By default, the profiling is enabled for all domains.

Return Values

If the value MsptiResult.MSPTI_SUCCESS is returned, the operation is successful. If the value of domain_name is an empty string, the value MsptiResult.MSPTI_ERROR_INVALID_PARAMETER is returned, indicating that the operation fails.