Skip to content

Conversation

Gilbow
Copy link
Collaborator

@Gilbow Gilbow commented Aug 19, 2025

Ajoute aux traces de fin de workflow, le pic d'utilisation de mémoire.
Note: le pic est pour le processus entier, pas pour un workflow déterminé.

@Gilbow Gilbow requested a review from jb-delafosse August 19, 2025 10:41
Copy link
Collaborator

@chloebarre chloebarre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merci :)


def sizeof_fmt(num, suffix=""):
"""
make memory usage human readable, argument is in Ko
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On est sur que c'est en Ko et pas en Kb ? :) désolée c'est peut etre une question bête.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bonne remarque, je découvre que c'est dépendant de l'OS.
Sous linux, ce sont des Ko.
(https://docs.python.org/3/library/resource.html -> https://manpages.debian.org/trixie/manpages-fr-dev/getrusage.2.fr.html#ru_maxrss)
Sous mac OS, également.
(https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/getrusage.2.html)
Sous windows, je n'ai pas trouvé d'information claire. Pas sûr que ça marche sous windows... doute... faudrait que je teste.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants