Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Add OV Transformation statistics doc file (#29806)

Ivan Tikhonov00a28fe665c1
diff --git a/src/common/transformations/docs/README.md b/src/common/transformations/docs/README.md
index 2622dd7a68e..04e1c1f36d4 100644
--- a/src/common/transformations/docs/README.md
+++ b/src/common/transformations/docs/README.md
@@ -2,7 +2,8 @@
## Debug capabilities
- * [Matcher logging README](./debug_capabilities/LOGGING_README.md)
+ * [Matcher logging README](./debug_capabilities/matcher_logging.md)
+ * [Transformation statistics collection and Visualization README](./debug_capabilities/transformation_statistics_collection.md)
## Key Contacts
diff --git a/src/common/transformations/docs/debug_capabilities/transformation_statistics_collection.md b/src/common/transformations/docs/debug_capabilities/transformation_statistics_collection.md
new file mode 100644
index 00000000000..e8457af464b
--- /dev/null
+++ b/src/common/transformations/docs/debug_capabilities/transformation_statistics_collection.md
@@ -0,0 +1,43 @@
+# Transformation statistics collection and visualization
+
+There are 3 environment variables which can be set for Transformations debugging:
+
+1. OV_ENABLE_PROFILE_PASS - Enables profiling of transformation passes to log their execution times.
+
+
+ Usage: Set this environment variable to "true" to enable visualizations.
+ Alternatively, specify a file path where the execution times will be saved.
+
+ Example:
+ export OV_ENABLE_PROFILE_PASS=true
+ export OV_ENABLE_PROFILE_PASS="/path/to/save/profiling/results"
+
+
+2. OV_ENABLE_VISUALIZE_TRACING - Enables visualization of the model to .svg file after each transformation pass.
+
+
+ Usage: Set this environment variable to "true", "on" or "1" to enable visualization for all Transformations.
+
+ Filtering: You can specify filters to control which passes are visualized.
+ If the variable is set to a specific filter string (e.g., "PassName", "PassName1,PassName2"),
+ only transformations matching that filter will be visualized. Delimiter is ",".
+
+ Example:
+ export OV_ENABLE_VISUALIZE_TRACING=true
+ export OV_ENABLE_VISUALIZE_TRACING="Pass1,Pass2,Pass3"
+
+
+3. OV_ENABLE_SERIALIZE_TRACING - Enables serialization of the model to .xml/.bin after each transformation pass.
+
+
+ Usage: Set this environment variable to "true", "on" or "1" to enable serialization for all Transformations.
+
+ Filtering: You can specify filters to control which passes are serialized.
+ If the variable is set to a specific filter string (e.g., "PassName", "PassName1,PassName2"),
+ only transformations matching that filter will be serialized. Delimiter is ",".
+
+ Example:
+ export OV_ENABLE_SERIALIZE_TRACING=true
+ export OV_ENABLE_SERIALIZE_TRACING="Pass1,Pass2,Pass3"
+
+If you have suggestions for improvements or encounter any issues with statistics collection, feel free to submit your feedback or contact Ivan Tikhonov <[email protected]>
\ No newline at end of file