lttng: Some performance improvements to the Resources view
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Fri, 10 Oct 2014 22:30:29 +0000 (18:30 -0400)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tue, 14 Oct 2014 20:37:13 +0000 (16:37 -0400)
commit5bf0ab102270a35d4381fc59c993fa747c1b28ad
treec95d3ab3dbb70ebf85c84618ff68672dbf5c9fac
parent6617b385b34fe1cf656bb529e3cbac4ccd4faee9
lttng: Some performance improvements to the Resources view

On Linux/GTK, calls to getSystemColor, getFontMetrics and gc.stringExtent are
quite expensive. This patch minimizes those calls. As a future improvement,
we should look into optimizing calls to TimeGraphControl.getXForTime because it
calls Control.getSize() which is slow as well.

Change-Id: I63460e305d8de458dbee4b6cb162b6cf04e77054
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/34743
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/resources/ResourcesPresentationProvider.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/widgets/Utils.java
This page took 0.034194 seconds and 5 git commands to generate.