Skip to main content
Glama

compare_profiles

Analyze performance differences between original and optimized Python code by comparing CPU, GPU, and memory profiling data to identify improvements and regressions.

Instructions

Compare two profiles to measure optimization impact.

Args: before_id: Profile ID from original code after_id: Profile ID from optimized code

Returns: {runtime_change_pct, memory_change_pct, improvements, regressions, summary_text}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
before_idYes
after_idYes

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ptmorris05/scalene-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server