Go to file
2025-06-23 14:45:07 +02:00
.vscode Initial commit for profile ProfileAnalyzer 2025-06-23 13:02:08 +02:00
doc manual and readme update 2025-06-23 14:42:47 +02:00
profileanalyzer ahh graph view, add manual and readme 2025-06-23 14:37:58 +02:00
.gitignore Chore: Stop tracking files based on .gitignore update. 2025-06-23 14:07:01 +02:00
launch_profiles.json Chore: Stop tracking files based on .gitignore update. 2025-06-23 14:07:01 +02:00
ProfileAnalyzer.ico Initial project structure created by ProjectInitializerTool 2025-06-18 15:20:44 +02:00
README.md manual and readme update 2025-06-23 14:45:07 +02:00
todo.md Chore: Stop tracking files based on .gitignore update. 2025-06-23 14:07:01 +02:00

Versione in Italiano (per README.md)

Python Profile Analyzer

Un analizzatore di performance visuale e interattivo per Python.

Python Profile Analyzer è un'applicazione desktop che aiuta gli sviluppatori a identificare i colli di bottiglia nel codice Python. Trasforma l'output testuale del profiler cProfile in viste interattive, rendendo l'ottimizzazione più rapida e intuitiva.

Screenshot dell'applicazione (Nota: Sostituisci screenshot.png con uno screenshot reale dell'applicazione)

Caratteristiche Principali

  • Analisi Multi-Vista: Esamina i dati attraverso una tabella ordinabile, una vista testuale e un grafo delle chiamate (call graph) con codice colore per evidenziare le funzioni più lente.
  • Esecuzione Integrata: Configura ed esegui il profiling di script o moduli direttamente dall'applicazione.
  • Navigazione Interattiva: Seleziona una funzione per scoprire istantaneamente chi la chiama (Callers) e cosa chiama (Callees).
  • Filtro Rapido: Isola le funzioni di interesse con una ricerca testuale in tempo reale.
  • Esportazione CSV: Salva i dati per analisi o reportistica esterna.

Installazione Rapida

  1. Clona il repository:

    git clone <URL_DEL_TUO_REPOSITORY_GITEA>
    cd <NOME_DELLA_CARTELLA>
    
  2. Crea un ambiente virtuale e installa le dipendenze:

    # Crea e attiva l'ambiente virtuale
    python -m venv venv
    source venv/bin/activate  # Su Windows: venv\Scripts\activate
    
    # Installa le librerie
    pip install graphviz Pillow
    
  3. Installa Graphviz (Requisito per la Vista a Grafo): Questa è una dipendenza di sistema, non solo una libreria Python. Visita il sito ufficiale di Graphviz per scaricare e installare il software adatto al tuo sistema operativo. Assicurati di aggiungerlo al PATH di sistema durante l'installazione.

Avvio

Per lanciare l'applicazione, esegui il comando seguente dalla cartella principale del progetto:

python -m profileanalyzer

Documentazione

Per una guida dettagliata all'utilizzo, esempi pratici e suggerimenti su come interpretare i risultati, consulta i manuali utente completi in wiki

Versione in Inglese (per README.md)

Python Profile Analyzer

A visual and interactive performance profiler for Python.

Python Profile Analyzer is a desktop application that helps developers identify bottlenecks in their Python code. It transforms the standard text output of the cProfile profiler into interactive views, making optimization faster and more intuitive.

Application Screenshot (Note: Replace screenshot.png with an actual screenshot of the application)

Key Features

  • Multi-View Analysis: Examine your data through a sortable table, a raw text view, and a heat-mapped call graph that highlights the slowest functions.
  • Integrated Runner: Configure and run the profiler on your scripts or modules directly from the application.
  • Interactive Navigation: Select any function to instantly discover its Callers and Callees.
  • Quick Filter: Isolate functions of interest with a real-time text search.
  • CSV Export: Save your data for external analysis or reporting.

Quick Installation

  1. Clone the repository:

    git clone <YOUR_GITEA_REPOSITORY_URL>
    cd <PROJECT_FOLDER_NAME>
    
  2. Create a virtual environment and install dependencies:

    # Create and activate the virtual environment
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
    # Install libraries
    pip install graphviz Pillow
    
  3. Install Graphviz (Required for the Graph View): This is a system dependency, not just a Python library. Visit the official Graphviz website to download and install the software for your operating system. Make sure to add it to your system's PATH during installation.

Getting Started

To launch the application, run the following command from the project's root directory:

python -m profileanalyzer

Documentation

For a detailed guide on usage, practical examples, and tips on how to interpret the results, please refer to the full user manuals on wiki