IGNITE-15049 Add documentation for the performance statistics Control script commands. (#9218)
diff --git a/docs/_docs/monitoring-metrics/performance-statistics.adoc b/docs/_docs/monitoring-metrics/performance-statistics.adoc
index a64696f..eb98ba9 100644
--- a/docs/_docs/monitoring-metrics/performance-statistics.adoc
+++ b/docs/_docs/monitoring-metrics/performance-statistics.adoc
@@ -25,7 +25,7 @@
== Collecting Statistics
-link:#jmx[JMX interface] is used to start and stop statistics collecting.
+link:#jmx[JMX interface] and link:#control-script[Control Script] are used to start and stop statistics collecting.
Each node collects performance statistics in a binary file. This file is placed under
the `Ignite_work_directory/perf_stat/` directory. The name mask is `node-{nodeId}-{index}.prf`.
@@ -69,7 +69,7 @@
== Management
-The following section provides information on JMX interface and system properties.
+The following section provides information on JMX, Control Script and system properties.
=== JMX
@@ -80,9 +80,41 @@
|Method | Description
|start() | Start collecting performance statistics in the cluster.
|stop() | Stop collecting performance statistics in the cluster.
+|rotate() | Rotate collecting performance statistics in the cluster.
|started() | True if performance statistics collection is started.
|===
+
+=== Control Script
+
+You can manage the performance statistics collection via the link:tools/control-script[Control Script].
+
+[tabs]
+--
+tab:Unix[]
+[source,shell]
+----
+control.sh --performance-statistics [start|stop|rotate|status]
+----
+tab:Window[]
+[source,shell]
+----
+control.bat --performance-statistics [start|stop|rotate|status]
+----
+--
+
+Parameters:
+
+[cols="1,3",opts="header"]
+|===
+| Parameter | Description
+| `start`| Start collecting performance statistics in the cluster.
+| `stop`| Stop collecting performance statistics in the cluster.
+| `rotate`| Rotate collecting performance statistics in the cluster.
+| `status`| Get status of collecting performance statistics in the cluster.
+|===
+
+
=== System properties
[cols="2,1,1,3",opts="header"]
diff --git a/docs/_docs/tools/control-script.adoc b/docs/_docs/tools/control-script.adoc
index b8417ee..2e307a9 100644
--- a/docs/_docs/tools/control-script.adoc
+++ b/docs/_docs/tools/control-script.adoc
@@ -862,6 +862,8 @@
----
control.bat --system-view views
----
+--
+
Examples of the output:
@@ -913,3 +915,35 @@
CACHES SYS Caches
TASKS SYS Running compute tasks
Command [SYSTEM-VIEW] finished with code: 0
+
+
+== Performance Statistics
+
+Ignite provides a built-in tool for cluster profiling. Read link:monitoring-metrics/performance-statistics[Performance Statistics] for more information.
+
+
+[tabs]
+--
+tab:Unix[]
+[source,shell]
+----
+control.sh --performance-statistics [start|stop|rotate|status]
+----
+tab:Window[]
+[source,shell]
+----
+control.bat --performance-statistics [start|stop|rotate|status]
+----
+--
+
+Parameters:
+
+[cols="1,3",opts="header"]
+|===
+| Parameter | Description
+| `start`| Start collecting performance statistics in the cluster.
+| `stop`| Stop collecting performance statistics in the cluster.
+| `rotate`| Rotate collecting performance statistics in the cluster.
+| `status`| Get status of collecting performance statistics in the cluster.
+|===
+