From bce31f64b76d8aa9a933f0f6a1a2d6ff95b63f33 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 14 Nov 2012 07:21:01 +0000 Subject: [PATCH] Update use/mention of options. --- README.markdown | 10 +++++----- gui/retracer.cpp | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.markdown b/README.markdown index ab14530..af54b7f 100644 --- a/README.markdown +++ b/README.markdown @@ -51,7 +51,7 @@ Replay an OpenGL trace with glretrace application.trace -Pass the `-sb` option to use a single buffered visual. Pass `--help` to +Pass the `--sb` option to use a single buffered visual. Pass `--help` to `glretrace` for more options. EGL traces must be replayed with `eglretrace` instead of `glretrace`. @@ -341,11 +341,11 @@ Profiling a trace You can perform gpu and cpu profiling with the command line options: - * `-pgpu` record gpu times for frames and draw calls. + * `--pgpu` record gpu times for frames and draw calls. - * `-pcpu` record cpu times for frames and draw calls. + * `--pcpu` record cpu times for frames and draw calls. - * `-ppd` record pixels drawn for each draw call. + * `--ppd` record pixels drawn for each draw call. The results from this can then be read by hand or analysed with a script. @@ -354,7 +354,7 @@ table which displays profiling results per shader. For example, to record all profiling data and utilise the per shader script: - ./glretrace -pgpu -pcpu -ppd foo.trace | ./scripts/profileshader.py + ./glretrace --pgpu --pcpu --ppd foo.trace | ./scripts/profileshader.py Advanced usage for OpenGL implementors diff --git a/gui/retracer.cpp b/gui/retracer.cpp index 6d743f7..8a766fa 100644 --- a/gui/retracer.cpp +++ b/gui/retracer.cpp @@ -294,21 +294,21 @@ void Retracer::run() arguments << QLatin1String("-"); // emit to stdout } else if (isProfiling()) { if (m_profileGpu) { - arguments << QLatin1String("-pgpu"); + arguments << QLatin1String("--pgpu"); } if (m_profileCpu) { - arguments << QLatin1String("-pcpu"); + arguments << QLatin1String("--pcpu"); } if (m_profilePixels) { - arguments << QLatin1String("-ppd"); + arguments << QLatin1String("--ppd"); } } else { if (m_doubleBuffered) { - arguments << QLatin1String("-db"); + arguments << QLatin1String("--db"); } else { - arguments << QLatin1String("-sb"); + arguments << QLatin1String("--sb"); } if (m_benchmarking) { -- 2.43.0