-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
synapse.metrics: implement detailed memory usage reporting on PyPy #7536
Conversation
Should I add sample panes to the contrib Grafana dashboard? |
I'd rather not, as it will mean that everybody else who uses the dashboard ends up with useless panes. I'm not quite sure of the best way forward here though. In any case, please can you fix the CI failures here? |
@richvdh I'm not sure what I should do wrt CI failures. The style check wants me to reformat this:
Into this:
Losing style consistency in the process. As far as I can see, my style is permitted per the style guide. Do I have to strictly obey the linter's suggestion? Other two build failures complain that PyPy-specific methods and fields don't exist, but I'm fairly sure none of the new code normally gets executed under CPython. |
yes. The style guide mostly says "do what black tells you to do". Just run you can add |
Hmph. I must've been looking at an older version of the style guide. I don't like the inconsistency, but fine.
I can't, but then again, I didn't write a synapse in python :) Can you? I'd gladly do something more appropriate, if said something exists. |
PyPy's gc.get_stats() returns an object containing detailed allocator statistics which could be beneficial to collect as metrics. Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name>
Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks!
…atrix-org#7536) PyPy's gc.get_stats() returns an object containing detailed allocator statistics which could be beneficial to collect as metrics. Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name>
PyPy's gc.get_stats() returns an object containing detailed allocator statistics
which could be beneficial to collect as metrics.
Signed-off-by: Ivan Shapovalov intelfx@intelfx.name
Pull Request Checklist
EventStore
toEventWorkerStore
.".code blocks
.