From d925bc5d72db721293ae884eefad38ff29eed686 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Tue, 13 Jul 2021 22:21:42 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - gprof2dot.py Fixes: - Should read `saturated` rather than `satured`. - Should read `edges` rather than `egdes`. - Should read `along` rather than `allong`. --- gprof2dot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gprof2dot.py b/gprof2dot.py index 2628961..3e95403 100644 --- a/gprof2dot.py +++ b/gprof2dot.py @@ -320,7 +320,7 @@ def call_ratios(self, event): call[CALL_RATIO] = ratio(call[event], total) def integrate(self, outevent, inevent): - """Propagate function time ratio allong the function calls. + """Propagate function time ratio along the function calls. Must be called after finding the cycles. @@ -510,7 +510,7 @@ def prune(self, node_thres, edge_thres): except UndefinedEvent: pass - # prune the egdes + # prune the edges for function in self.functions.itervalues(): for callee_id in function.calls.keys(): call = function.calls[callee_id] @@ -1633,13 +1633,13 @@ def _hue_to_rgb(self, m1, m2, h): TEMPERATURE_COLORMAP = Theme( mincolor = (2.0/3.0, 0.80, 0.25), # dark blue - maxcolor = (0.0, 1.0, 0.5), # satured red + maxcolor = (0.0, 1.0, 0.5), # saturated red gamma = 1.0 ) PINK_COLORMAP = Theme( mincolor = (0.0, 1.0, 0.90), # pink - maxcolor = (0.0, 1.0, 0.5), # satured red + maxcolor = (0.0, 1.0, 0.5), # saturated red ) GRAY_COLORMAP = Theme(