Developers
主页
开发
文档
活动
学习
论坛
博客
开发者计划
More
Home
Products
Solutions
Developers
More
Atlas Hardware
Coming Soon
Cluster O&M
CCAE
Industry Applications
Internet
Telecom
Urban Data Center
Finance
Education
Energy
Transportation
Manufacturing
Healthcare
Solutions
MoE EP Solution
Atlas Foundation Model Solution
Development
Model Training
Model Inference
Operator Development
Heterogeneous Compute Architecture
CANN
AI Frameworks
MindSpore
PyTorch Adaptation
TensorFlow Adaptation
Application Enablement
MindSpeed
MindIE
MIndCluster
MindEdge
MindSDK
Full-Pipeline Development Toolchains
MindStudio
Documentation
Documentation
Learn
Learning Paths
Online Courses
Documentation

__enter__/__exit__

Function

def __enter__(self)

def __exit__(self, exc_type, exc_val, exc_tb)

Function Description

Calls the span_start function automatically when the process enters to log its start time. Calls the span_end function automatically when the process exits to log its end time.

Parent topic: msServiceProfiler Profiling

Copyright © 2021-2026 Huawei Technologies Co., Ltd. All rights reserved.

Terms of Use
Privacy Policy
Cookies Policy
User Agreement
Contact Us
This site uses cookies to improve your browsing experience. By continuing to browse this site, you agree to our use of cookies.View Details