phanikumv commented on code in PR #42304:
URL: https://github.com/apache/airflow/pull/42304#discussion_r1767833194
##########
airflow/executors/base_executor.py:
##########
@@ -617,6 +620,12 @@ def debug_dump(self):
len(self.event_buffer),
"\n\t".join(map(repr, self.event_buffer.items())),
)
+ snapshot = tracemalloc.take_snapshot()
+ top_stats = snapshot.statistics("lineno")
+ n = 10
+ memory_usage_top_n_info = "\n".join([str(stat) for stat in
top_stats[:n]])
+ self.log.debug("executor memory usgae:\n Top %d\n %s", n,
memory_usage_top_n_info)
Review Comment:
```suggestion
self.log.debug("executor memory usage:\n Top %d\n %s", n,
memory_usage_top_n_info)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]