diff options
author | José Dapena Paz <jdapena@igalia.com> | 2014-06-13 18:48:49 +0200 |
---|---|---|
committer | Dominik Holland <dominik.holland@qt.io> | 2020-06-12 17:20:33 +0200 |
commit | 3c556885f02a93efc34dd439ee9aaea22993a2d6 (patch) | |
tree | 2da6944888ec1884d5ee8f99ff98b1718afef1cb /src/gui/opengl | |
parent | ebd4cb43f8682bf22d5bf1d2f49501590c28b7ff (diff) |
Add more LTTNG tracing points
* QImage and QPixmap copy and transform operations.
* OpenGL paint engine texture cache texture upload
* OpenGL paint engine draw texture
Task-number: QTBUG-83347
Change-Id: I03150d6ff80cbbcd787133d75854715cb81b5571
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
(cherry picked from commit 6d323c0b221a3b127d80e338a42306cc34bc4d40)
Diffstat (limited to 'src/gui/opengl')
-rw-r--r-- | src/gui/opengl/qopenglframebufferobject.cpp | 7 | ||||
-rw-r--r-- | src/gui/opengl/qopenglpaintengine.cpp | 4 | ||||
-rw-r--r-- | src/gui/opengl/qopengltexturecache.cpp | 4 |
3 files changed, 14 insertions, 1 deletions
diff --git a/src/gui/opengl/qopenglframebufferobject.cpp b/src/gui/opengl/qopenglframebufferobject.cpp index d7a6d32218..340b1f5f40 100644 --- a/src/gui/opengl/qopenglframebufferobject.cpp +++ b/src/gui/opengl/qopenglframebufferobject.cpp @@ -50,6 +50,8 @@ #include <qimage.h> #include <QtCore/qbytearray.h> +#include <qtgui_tracepoints_p.h> + QT_BEGIN_NAMESPACE #ifndef QT_NO_DEBUG @@ -467,11 +469,14 @@ namespace } } -void QOpenGLFramebufferObjectPrivate::init(QOpenGLFramebufferObject *, const QSize &size, +void QOpenGLFramebufferObjectPrivate::init(QOpenGLFramebufferObject *qfbo, const QSize &size, QOpenGLFramebufferObject::Attachment attachment, GLenum texture_target, GLenum internal_format, GLint samples, bool mipmap) { + Q_TRACE_SCOPE(QOpenGLFramebufferObjectPrivate_init, qfbo, size, attachment, texture_target, internal_format, samples, mipmap); + Q_UNUSED(qfbo); + QOpenGLContext *ctx = QOpenGLContext::currentContext(); funcs.initializeOpenGLFunctions(); diff --git a/src/gui/opengl/qopenglpaintengine.cpp b/src/gui/opengl/qopenglpaintengine.cpp index b53c9a3eab..d6860614f4 100644 --- a/src/gui/opengl/qopenglpaintengine.cpp +++ b/src/gui/opengl/qopenglpaintengine.cpp @@ -87,6 +87,8 @@ #include <QDebug> +#include <qtgui_tracepoints_p.h> + #ifndef GL_KHR_blend_equation_advanced #define GL_KHR_blend_equation_advanced 1 #define GL_MULTIPLY_KHR 0x9294 @@ -635,6 +637,8 @@ static inline void setCoords(GLfloat *coords, const QOpenGLRect &rect) void QOpenGL2PaintEngineExPrivate::drawTexture(const QOpenGLRect& dest, const QOpenGLRect& src, const QSize &textureSize, bool opaque, bool pattern) { + Q_TRACE_SCOPE(QOpenGL2PaintEngineExPrivate_drawTexture, dest, src, textureSize, opaque, pattern); + // Setup for texture drawing currentBrush = noBrush; diff --git a/src/gui/opengl/qopengltexturecache.cpp b/src/gui/opengl/qopengltexturecache.cpp index ef07dbe109..2d219f0d2d 100644 --- a/src/gui/opengl/qopengltexturecache.cpp +++ b/src/gui/opengl/qopengltexturecache.cpp @@ -44,6 +44,8 @@ #include <private/qimagepixmapcleanuphooks_p.h> #include <qpa/qplatformpixmap.h> +#include <qtgui_tracepoints_p.h> + QT_BEGIN_NAMESPACE class QOpenGLTextureCacheWrapper @@ -157,6 +159,8 @@ GLuint QOpenGLTextureCache::bindTexture(QOpenGLContext *context, const QImage &i GLuint QOpenGLTextureCache::bindTexture(QOpenGLContext *context, qint64 key, const QImage &image, QOpenGLTextureUploader::BindOptions options) { + Q_TRACE_SCOPE(QOpenGLTextureCache_bindTexture, context, key, image, options); + GLuint id; QOpenGLFunctions *funcs = context->functions(); funcs->glGenTextures(1, &id); |