summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildstream/_profile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_profile.py b/buildstream/_profile.py
index 461a9b3f9..a7fad0a97 100644
--- a/buildstream/_profile.py
+++ b/buildstream/_profile.py
@@ -75,7 +75,7 @@ class Profile():
heading += 'Profile for key: {}\n'.format(self.key)
heading += 'Started at: {}\n'.format(time)
if self.message:
- heading += '\n {}'.format(message)
+ heading += '\n {}'.format(self.message)
heading += '================================================================\n'
f.write(heading)
ps = pstats.Stats(self.profiler, stream=f).sort_stats('cumulative')