diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-02-23 16:16:21 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-02-23 16:16:21 -0300 |
commit | 24f19ce1352a628b5f378d301ce368931e3852d5 (patch) | |
tree | a02e95cc966184f3cd8db1a47d10de1cc7b4a4fc | |
parent | f80d2b54b911f412ff25e66e56dc246da4eaaa4e (diff) | |
download | tuna-24f19ce1352a628b5f378d301ce368931e3852d5.tar.gz |
procview gui: Don't assume the perf binding is always available
I.e. fix the perf availability detection.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rwxr-xr-x | tuna/gui/procview.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tuna/gui/procview.py b/tuna/gui/procview.py index ad5b31e..b1f87a3 100755 --- a/tuna/gui/procview.py +++ b/tuna/gui/procview.py @@ -2,7 +2,7 @@ import pygtk pygtk.require("2.0") from tuna import tuna, gui -import gobject, gtk, procfs, re, schedutils, perf +import gobject, gtk, procfs, re, schedutils def N_(s): """gettext_noop""" @@ -215,6 +215,7 @@ class procview: self.evlist = None try: + import perf self.perf_init() except: # No perf, poll /proc baby, poll pass |