The msServiceProfiler module offers Python APIs for profiling inference services.
For details about the functions and usage examples of the inference serving profiling APIs, see Data Profiling.
Python API import: from ms_service_profiler import Profiler, Level
Specific APIs are listed below.
API |
Description |
|---|---|
Performs initialization. |
|
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. |
|
Records the start node of a process. |
|
Records the end node of a process. |
|
Records an event. |
|
Records the association between different resources. |
|
Records the value of a metric class. |
|
Records the increment of a metric class. |
|
Defines the scope of a metric class. |
|
Defines the scope of a metric class as the request ID. |
|
Flushes the request record to the disk. |
|
Adds an attribute and returns the current object. Chain calls are supported. |
|
Defines the domain of the data. Entries in the same domain form a category in the trace data. |
|
Assigns a unique resource ID to link the data with its corresponding timeline. |
|
Obtains the current record data. |