tracers: Fix documentation comment using gtk-doc style

So the online documentation works
This commit is contained in:
Thibault Saunier 2022-09-24 16:30:50 -03:00
parent 692a063528
commit adb4cb8691
3 changed files with 107 additions and 96 deletions

View file

@ -6,41 +6,44 @@
// //
// SPDX-License-Identifier: MPL-2.0 // SPDX-License-Identifier: MPL-2.0
/// This tracer provides an easy way to collect lateness of each buffer when it is pushed out of a /**
/// pad in live pipelines. * tracer-buffer-lateness:
/// *
/// Example: * This tracer provides an easy way to collect lateness of each buffer when it is pushed out of a
/// * pad in live pipelines.
/// ```console *
/// $ GST_TRACERS='buffer-lateness(file="/tmp/buffer_lateness.log")' gst-launch-1.0 audiotestsrc is-live=true ! queue ! fakesink * Example:
/// ``` *
/// * ```console
/// The generated file is a CSV file of the format * $ GST_TRACERS='buffer-lateness(file="/tmp/buffer_lateness.log")' gst-launch-1.0 audiotestsrc is-live=true ! queue ! fakesink
/// * ```
/// ```csv *
/// timestamp,element:pad name,pad pointer,buffer clock time,pipeline clock time,lateness,min latency * The generated file is a CSV file of the format
/// ``` *
/// * ```csv
/// ## Parameters * timestamp,element:pad name,pad pointer,buffer clock time,pipeline clock time,lateness,min latency
/// * ```
/// ### `file` *
/// * ## Parameters
/// Specifies the path to the file that will collect the CSV file with the buffer lateness. *
/// * ### `file`
/// By default the file is written to `/tmp/buffer_lateness.log`. *
/// * Specifies the path to the file that will collect the CSV file with the buffer lateness.
/// ### `include-filter` *
/// * By default the file is written to `/tmp/buffer_lateness.log`.
/// Specifies a regular expression for the `element:pad` names that should be included. *
/// * ### `include-filter`
/// By default this is not set. *
/// * Specifies a regular expression for the `element:pad` names that should be included.
/// ### `exclude-filter` *
/// * By default this is not set.
/// Specifies a regular expression for the `element:pad` names that should **not** be included. *
/// * ### `exclude-filter`
/// By default this is not set. *
/// * Specifies a regular expression for the `element:pad` names that should **not** be included.
*
* By default this is not set.
*/
use std::collections::HashMap; use std::collections::HashMap;
use std::path::PathBuf; use std::path::PathBuf;
use std::str::FromStr; use std::str::FromStr;

View file

@ -6,33 +6,37 @@
// //
// SPDX-License-Identifier: MPL-2.0 // SPDX-License-Identifier: MPL-2.0
/// This tracer provides an easy way to take a snapshot of all the pipelines without /**
/// having to modify the application. * tracer-pipeline-snapshot:
/// One just have to load the tracer and send the `SIGUSR1` UNIX signal to take snapshots. *
/// It currently only works on UNIX systems. * This tracer provides an easy way to take a snapshot of all the pipelines without
/// * having to modify the application.
/// When taking a snapshot pipelines are saved to DOT files, but the tracer may be * One just have to load the tracer and send the `SIGUSR1` UNIX signal to take snapshots.
/// extended in the future to dump more information. * It currently only works on UNIX systems.
/// *
/// Example: * When taking a snapshot pipelines are saved to DOT files, but the tracer may be
/// * extended in the future to dump more information.
/// ```console *
/// $ GST_TRACERS="pipeline-snapshot" GST_DEBUG_DUMP_DOT_DIR=. gst-launch-1.0 audiotestsrc ! fakesink * Example:
/// ``` *
/// You can then trigger a snapshot using: * ```console
/// ```console * $ GST_TRACERS="pipeline-snapshot" GST_DEBUG_DUMP_DOT_DIR=. gst-launch-1.0 audiotestsrc ! fakesink
/// $ kill -SIGUSR1 $(pidof gst-launch-1.0) * ```
/// ``` * You can then trigger a snapshot using:
/// * ```console
/// Parameters can be passed to configure the tracer: * $ kill -SIGUSR1 $(pidof gst-launch-1.0)
/// - `dot-prefix` (string, default: "pipeline-snapshot-"): when dumping pipelines to a `dot` file each file is named `$prefix$pipeline_name.dot`. * ```
/// - `dot-ts` (boolean, default: "true"): if the current timestamp should be added as a prefix to each pipeline `dot` file. *
/// * Parameters can be passed to configure the tracer:
/// Example: * - `dot-prefix` (string, default: "pipeline-snapshot-"): when dumping pipelines to a `dot` file each file is named `$prefix$pipeline_name.dot`.
/// * - `dot-ts` (boolean, default: "true"): if the current timestamp should be added as a prefix to each pipeline `dot` file.
/// ```console *
/// $ GST_TRACERS="pipeline-snapshot(dot-prefix="badger-",dot-ts=false)" GST_DEBUG_DUMP_DOT_DIR=. gst-launch-1.0 audiotestsrc ! fakesink * Example:
/// ``` *
* ```console
* $ GST_TRACERS="pipeline-snapshot(dot-prefix="badger-",dot-ts=false)" GST_DEBUG_DUMP_DOT_DIR=. gst-launch-1.0 audiotestsrc ! fakesink
* ```
*/
use std::collections::HashMap; use std::collections::HashMap;
use std::str::FromStr; use std::str::FromStr;
use std::sync::{Arc, Mutex}; use std::sync::{Arc, Mutex};

View file

@ -6,40 +6,44 @@
// //
// SPDX-License-Identifier: MPL-2.0 // SPDX-License-Identifier: MPL-2.0
/// This tracer provides an easy way to collect queue levels over time of all queues inside a /**
/// pipeline. * tracer-queue-levels:
/// *
/// Example: * This tracer provides an easy way to collect queue levels over time of all queues inside a
/// * pipeline.
/// ```console *
/// $ GST_TRACERS='queue-levels(file="/tmp/queue_levels.log")' gst-launch-1.0 audiotestsrc ! queue ! fakesink * Example:
/// ``` *
/// * ```console
/// The generated file is a CSV file of the format * $ GST_TRACERS='queue-levels(file="/tmp/queue_levels.log")' gst-launch-1.0 audiotestsrc ! queue ! fakesink
/// * ```
/// ```csv *
/// timestamp,queue name,queue pointer,cur-level-bytes,cur-level-time,cur-level-buffers,max-size-bytes,max-size-time,max-size-buffers * The generated file is a CSV file of the format
/// ``` *
/// * ```csv
/// ## Parameters * timestamp,queue name,queue pointer,cur-level-bytes,cur-level-time,cur-level-buffers,max-size-bytes,max-size-time,max-size-buffers
/// * ```
/// ### `file` *
/// * ## Parameters
/// Specifies the path to the file that will collect the CSV file with the queue levels. *
/// * ### `file`
/// By default the file is written to `/tmp/queue_levels.log`. *
/// * Specifies the path to the file that will collect the CSV file with the queue levels.
/// ### `include-filter` *
/// * By default the file is written to `/tmp/queue_levels.log`.
/// Specifies a regular expression for the queue object names that should be included. *
/// * ### `include-filter`
/// By default this is not set. *
/// * Specifies a regular expression for the queue object names that should be included.
/// ### `exclude-filter` *
/// * By default this is not set.
/// Specifies a regular expression for the queue object names that should **not** be included. *
/// * ### `exclude-filter`
/// By default this is not set. *
* Specifies a regular expression for the queue object names that should **not** be included.
*
* By default this is not set.
*/
use std::collections::HashMap; use std::collections::HashMap;
use std::path::PathBuf; use std::path::PathBuf;
use std::str::FromStr; use std::str::FromStr;