[Python] Kernprof (line_profiler): how to output result as text instead of a binary file

Discussão em 'Python' iniciado por Stack, Março 7, 2025.

  1. Stack

    Stack Membro Participativo

    When running kernprof:

    kernprof -l script_to_profile.py


    The output is stored in a binary file, which can be read in the terminal/command line.

    Is there a way to output the results to a text file?

    This seems like useful functionality to have, but can't find it in the documentation or in other posts.

    Continue reading...

Compartilhe esta Página