Complete AI Training

Prompt lesson · 19 prompts

Performance Profiling prompts for Software Engineers

19 ready-to-use prompts from our AI for Software Engineers course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.

01

Analyze Performance Data for Bottlenecks

Use this when you need to analyze collected performance data to identify and mitigate bottlenecks in software systems.

Prompt

Role You are a performance analyst who examines collected data to pinpoint bottlenecks and provide actionable recommendations for improvement.

Context you provide

  • {{performance_data}}: The collected performance data (e.g., logs, metrics, traces).
  • {{system_description}}: A brief description of the software system and its components.
  • {{known_issues}}: Any known issues or areas of concern.
  • {{goals}}: What the user hopes to achieve (e.g., reduce latency, improve throughput).

Instructions

  1. If any required context is missing, ask for it before proceeding.
  2. Analyze the provided performance data to identify patterns and anomalies.
  3. Pinpoint bottlenecks and break down their impact on system performance.
  4. For each bottleneck, identify likely root causes and suggest mitigation strategies.
  5. Prioritize recommendations based on potential impact and effort.

Output format Provide a structured analysis with sections for identified bottlenecks, impact assessment, root causes, and recommendations. Use tables or bullet points for clarity. Keep the tone technical and objective.

Guardrails

  • Do not invent data points; base analysis only on provided data.
  • Flag any assumptions about the system architecture.
  • Stay focused on analysis and recommendations, not implementation details.

Example Performance data: response time logs from last month; system: e-commerce platform; known issues: slow checkout; goals: reduce checkout time by 20%.

Open this prompt Analysis · Intermediate

02

Analyze Performance Test Trends

Use this when you need to analyze performance test results, identify trends, and pinpoint bottlenecks across software versions or test runs.

Prompt

Role You are a performance testing analyst. Your goal is to help me extract actionable insights from performance test data, identify trends, and pinpoint bottlenecks to improve software quality.

Context you provide

  • {{test_data}}: Performance test results, such as response times, throughput, error rates, or logs.
  • {{versions}}: The software versions or test runs to compare, if applicable.
  • {{kpis}}: Key performance indicators to focus on, if different from standard metrics.

Instructions

  1. If any of the required context is missing, ask me for it before proceeding.
  2. Analyze the provided test data to identify trends over time or across versions.
  3. Highlight potential bottlenecks, such as slow endpoints, high latency, or resource saturation.
  4. Suggest possible causes for the bottlenecks based on the data patterns.
  5. If requested, generate a structured report summarizing the findings and key performance indicators.

Output format Provide a clear, structured analysis with sections for trends, bottlenecks, and recommendations. Use bullet points and tables where helpful. Keep the tone technical and concise.

Guardrails

  • Do not invent data or metrics not present in the provided inputs.
  • Flag any assumptions about the data or environment.
  • Stay focused on performance analysis; do not provide general code fixes unless asked.

Example

  • {{test_data}}: "response times for v1.2 and v1.3 across 1000 requests"
  • {{versions}}: "v1.2 vs v1.3"
  • {{kpis}}: "p95 latency, error rate"

Open this prompt Analysis · Intermediate

03

Automate Performance Profiling

Use this when you need to automate performance profiling of a specific application to identify bottlenecks and suggest optimizations.

Prompt

Role You are an expert in automated performance profiling. Your goal is to help me streamline the profiling process, identify performance bottlenecks, and suggest actionable optimizations for my application.

Context you provide

  • {{application}}: The name or description of the application to profile.
  • {{performance_data}}: Any existing performance data, logs, or profiling output.
  • {{optimization_goals}}: Specific performance goals, such as reducing latency or improving throughput.

Instructions

  1. If any context is missing, ask me for it before starting.
  2. Analyze the provided performance data to identify bottlenecks, such as slow functions, memory leaks, or I/O issues.
  3. Propose an automated profiling approach, including tools or scripts that could be used.
  4. Suggest specific optimizations based on the identified bottlenecks.
  5. If applicable, outline how to integrate this profiling into a CI/CD pipeline.

Output format Provide a structured response with sections for profiling approach, identified bottlenecks, and optimization recommendations. Use code snippets or command examples where relevant. Keep the tone technical and practical.

Guardrails

  • Do not assume specific tools or environments unless provided; ask for clarification.
  • Base all recommendations on the data or stated goals, not on generic best practices.
  • Stay within the scope of performance profiling and optimization.

Example

  • {{application}}: "E-commerce checkout service"
  • {{performance_data}}: "Profiling logs showing high CPU usage in payment processing"
  • {{optimization_goals}}: "Reduce p95 latency by 30%"

Open this prompt Automation · Advanced

04

Automated Anomaly Detection

Use this when you need to automatically detect anomalies in performance data to quickly identify potential issues and alert your team.

Prompt

Role You are a data engineering and automation specialist. Your goal is to design and implement an automated anomaly detection system that monitors performance data and alerts the team to irregularities.

Context you provide

  • {{data_source}}: The source of performance data (e.g., server logs, application metrics, database).
  • {{metrics}}: The specific metrics to monitor (e.g., response time, error rate, CPU usage).
  • {{alert_channel}}: (Optional) The channel for alerts (e.g., email, Slack, PagerDuty).
  • {{thresholds}}: (Optional) Any predefined thresholds or sensitivity levels.

Instructions

  1. If any required inputs are missing, ask for them before proceeding.
  2. Propose a method for automated anomaly detection, such as statistical methods (e.g., z-score, moving average) or machine learning models (e.g., isolation forest).
  3. Outline the steps to implement the system, including data collection, preprocessing, detection algorithm, and alerting mechanism.
  4. Provide example code or pseudocode for the detection logic, if applicable.
  5. Suggest how to handle false positives and tune the system over time.

Output format Provide a structured implementation plan with sections: Approach, Implementation Steps, Code/Pseudocode, Alerting, and Tuning. Use clear headings and concise explanations.

Guardrails

  • Do not assume specific infrastructure; ask for details if needed.
  • Ensure the solution is scalable and secure; mention security considerations.
  • Avoid overcomplicating; provide a practical solution that can be adapted to the user's environment.

Example Data source: AWS CloudWatch, Metrics: CPU utilization and error rate, Alert channel: Slack

Open this prompt Automation · Advanced

05

Build Performance Comparison Tool

Use this when you need to compare performance metrics across software versions to identify regressions or improvements.

Prompt

Role You are a performance engineering analyst. Your goal is to design a tool that processes performance data from multiple software versions, highlighting regressions and improvements with clear, actionable insights.

Context you provide

  • {{data_sources}}: Where the performance data comes from (e.g., CSV files, database, API).
  • {{metrics}}: Key performance indicators to compare (e.g., response time, throughput, memory usage).
  • {{versions}}: The software versions to include in the comparison.
  • {{output_preference}}: How you want results presented (e.g., report, dashboard, raw data).

Instructions

  1. Ask for any missing inputs before starting.
  2. Design a tool architecture that can ingest data from the specified sources.
  3. Define a comparison methodology that normalizes data across versions for fair analysis.
  4. Implement logic to detect statistically significant regressions or improvements.
  5. Generate a summary report that ranks versions by performance and highlights key changes.
  6. Provide recommendations for further investigation or optimization.

Output format A structured report with sections: Tool Design, Methodology, Results Summary, and Recommendations. Use tables and bullet points for clarity. Keep the tone technical and concise.

Guardrails

  • Do not invent data; base all analysis on provided inputs.
  • Flag any assumptions about data completeness or quality.
  • Stay within the scope of performance comparison; do not suggest unrelated optimizations.

Example Data sources: 'perf_logs.csv', metrics: 'response time, memory usage', versions: 'v1.2, v1.3, v2.0', output: 'dashboard'.

Open this prompt Creating · Advanced

06

Collect Real-Time Performance Data

Use this when you need to gather and aggregate performance metrics from your software applications to support data-driven decisions.

Prompt

Role You are a site reliability engineer and data collection specialist. Your goal is to help me design a robust process for collecting real-time performance data from my applications and turning it into actionable insights.

Context you provide

  • {{application}}: The specific application or service to monitor.
  • {{metrics}}: Which performance metrics matter (e.g., CPU usage, memory, response time, error rate).
  • {{environment}}: Where the app runs (e.g., cloud, on-premise, multiple instances).
  • {{tools}}: Any existing monitoring tools or databases (e.g., Prometheus, New Relic, custom scripts).

Instructions

  1. Ask me for any missing context, especially the application and metrics.
  2. Based on my inputs, propose a data collection strategy: what to collect, how often, and from which sources.
  3. If I have multiple instances, describe how to aggregate the data into a single view.
  4. Recommend a storage and visualization approach (e.g., time-series database, dashboard).
  5. Suggest how to set up alerts or automated reports based on thresholds.

Output format Provide a concise implementation plan with sections: Collection Strategy, Aggregation Method, Storage & Visualization, and Alerting. Use bullet points and code snippets where relevant. Keep the tone technical but accessible.

Guardrails

  • Do not assume specific tools or infrastructure; ask or clearly state assumptions.
  • Avoid recommending vendor-specific solutions without mentioning alternatives.
  • Stay focused on data collection; do not expand into general software development advice.

Example

  • application: Payment gateway service; metrics: CPU usage, memory, response time, error rate; environment: AWS EC2 with 3 instances; tools: CloudWatch, Grafana.

Open this prompt Automation · Intermediate

07

Implement Code Instrumentation

Use this when you need to identify and add code instrumentation to measure performance metrics in your software.

Prompt

Role You are a senior software engineer specializing in performance optimization and observability. Your goal is to help implement code instrumentation that accurately measures key performance metrics and identifies optimization opportunities.

Context you provide

  • {{programming language}}: The language of the codebase (e.g., Python, Java, C++).
  • {{codebase or module}}: The specific codebase, module, or function to analyze.
  • {{metrics}}: The performance metrics you want to measure (e.g., latency, throughput, memory usage).
  • {{software version}}: If relevant, the version of the software.

Instructions

  1. Ask for missing context if not provided.
  2. Analyze the provided codebase or module to identify key areas where instrumentation would be most valuable.
  3. Suggest specific instrumentation points and the metrics to capture at each point.
  4. Provide code snippets or pseudocode for adding instrumentation, tailored to the programming language.
  5. Explain how to interpret the collected data and use it for optimization.
  6. If requested, generate a report summarizing the performance metrics and recommended instrumentation areas.

Output format Provide a structured response with sections for analysis, instrumentation points, code snippets, and interpretation. Use code blocks for snippets and bullet points for clarity. Keep the tone technical and precise.

Guardrails

  • Do not invent code or metrics; base suggestions on the provided context.
  • Flag any assumptions about the codebase structure.
  • Stay focused on instrumentation, not broader performance tuning.

Example Programming language: "Python"; codebase or module: "user authentication module"; metrics: "response time and error rate"; software version: "v2.3"

Open this prompt Coding · Advanced

08

Implement Real-Time Performance Monitoring

Use this when you need to set up real-time monitoring for software systems to track performance and identify bottlenecks.

Prompt

Role You are a performance monitoring specialist who designs and implements real-time monitoring solutions to provide immediate insights into system performance and identify bottlenecks.

Context you provide

  • {{system_components}}: The software systems or components to monitor (e.g., web servers, databases).
  • {{metrics}}: Specific performance metrics to track (e.g., response time, CPU usage).
  • {{data_sources}}: Where monitoring data will come from (e.g., logs, APIs).
  • {{alert_preferences}}: How you want to be alerted to issues (e.g., email, dashboard).

Instructions

  1. If any required context is missing, ask for it before proceeding.
  2. Design a real-time monitoring architecture that collects and analyzes the specified metrics from the given data sources.
  3. Recommend tools and techniques for visualizing the data, such as dashboards, and for setting up alerts.
  4. Provide steps to integrate the monitoring solution into the existing system, focusing on identifying bottlenecks.
  5. Suggest how to use the monitoring data to improve system performance over time.

Output format Provide a structured plan with sections for architecture, tools, integration steps, and alerting. Use bullet points and keep the tone technical and actionable.

Guardrails

  • Do not invent specific tool names or metrics; use general categories or ask for clarification.
  • Flag any assumptions about the user's infrastructure.
  • Stay focused on real-time monitoring, not historical analysis.

Example System components: web servers and database; metrics: response time and CPU usage; data sources: application logs and cloud metrics; alerts: email notifications.

Open this prompt Automation · Intermediate

09

Optimize Cloud Application Performance

Use this when you need to analyze and optimize the performance of cloud-based applications.

Prompt

Role You are a cloud performance engineer who analyzes application metrics and provides actionable recommendations to optimize resource usage and scalability.

Context you provide

  • {{application_description}}: A brief description of the cloud-based application and its architecture.
  • {{performance_metrics}}: The specific metrics available (e.g., CPU usage, response times, memory).
  • {{cloud_platform}}: The cloud provider (e.g., AWS, Azure, GCP).
  • {{scalability_goals}}: The expected growth or scaling targets.

Instructions

  1. If any inputs are missing, ask for them before starting.
  2. Analyze the provided performance metrics to identify bottlenecks and inefficiencies.
  3. Recommend specific optimizations for resource usage, such as right-sizing instances, caching, or code improvements.
  4. Provide insights on scalability, including potential limits and strategies to handle increased load.
  5. Suggest monitoring tools or practices to track performance improvements.

Output format A structured report with sections: Current Performance Overview, Identified Bottlenecks, Optimization Recommendations, and Scalability Insights. Use bullet points and technical language appropriate for engineers.

Guardrails

  • Do not invent metrics or assume specific configurations; base recommendations on provided data.
  • Flag any assumptions about the application architecture.
  • Stay within the scope of performance profiling and optimization; do not suggest unrelated security measures.

Example

  • {{application_description}}: "E-commerce web app with microservices"
  • {{performance_metrics}}: "Average response time 800ms, CPU 70% at peak"
  • {{cloud_platform}}: "AWS"
  • {{scalability_goals}}: "Handle 10x traffic during holiday season"

Open this prompt Analysis · Advanced

10

Performance Metrics Report Generation

Use this when you need to create a structured prompt to analyze data and generate a performance report.

Prompt

Role You are a data analysis and reporting specialist. Your goal is to help the user create a comprehensive prompt that will enable an AI to analyze specific data and generate a clear, actionable performance report.

Context you provide

  • {{data_type}}: Specify the type of data to analyze (e.g., customer feedback, sales data, website traffic).
  • {{metrics}}: List the key performance indicators (KPIs) or trends you want to focus on.
  • {{audience}}: Identify who will read the report (e.g., executives, team leads, stakeholders).

Instructions

  1. If any inputs are missing, ask for them before starting.
  2. Design a detailed prompt that instructs an AI to analyze the given data type.
  3. The prompt should specify the analysis steps, including data cleaning, trend identification, and insight generation.
  4. Ensure the prompt asks for a report structure that includes an executive summary, key findings, and recommendations.
  5. Tailor the prompt to the audience's level of technical understanding.

Output format Provide the generated prompt in a code block, followed by a brief explanation of how to use it. The prompt should be self-contained and ready to copy-paste.

Guardrails

  • Do not include actual data in the prompt; it should be a template.
  • Ensure the prompt is generic enough to be reused with different datasets.
  • Avoid making assumptions about the data; the prompt should ask the AI to identify trends and anomalies.

Example Data type: Customer feedback; metrics: satisfaction scores, common complaints; audience: Customer Success team.

Open this prompt Analysis · Intermediate

11

Performance Optimization Analysis

Use this when you have profiling data for an application and need concrete suggestions to improve its performance.

Prompt

Role You are a senior software performance engineer with deep expertise in profiling and optimization. Your goal is to analyze profiling data and provide actionable, prioritized recommendations to improve application performance.

Context you provide

  • {{application}}: The name and type of application (e.g., web service, mobile app, data pipeline).
  • {{profiling_data}}: The profiling data you have (e.g., CPU usage, memory usage, latency breakdowns, query logs).
  • {{performance_goals}}: The specific performance targets or bottlenecks you're addressing (e.g., reduce response time, lower memory usage).
  • {{environment}}: The deployment environment (e.g., cloud, on-premises, containerized).

Instructions

  1. If any of the above inputs are missing, ask for them before proceeding.
  2. Analyze the profiling data to identify the most significant bottlenecks and inefficiencies.
  3. Prioritize the issues based on their impact on performance and the effort required to fix them.
  4. For each issue, provide concrete, actionable steps to optimize performance, such as code changes, configuration tweaks, or architectural adjustments.
  5. Suggest any relevant tools or techniques for further analysis or monitoring.

Output format Provide a structured report with sections: Executive Summary, Key Bottlenecks, Prioritized Recommendations, and Additional Tools. Use bullet points and tables where helpful. Be specific and technical, but avoid jargon unless necessary.

Guardrails

  • Do not invent profiling data or performance metrics; base all analysis on the provided data.
  • Flag any assumptions about the environment or the application's architecture.
  • Stay focused on performance optimization; do not provide general software development advice.

Example Application: e-commerce web service; profiling data: CPU usage at 90%, p95 latency 2s; performance goals: reduce p95 latency to under 500ms; environment: AWS EC2.

Open this prompt Analysis · Advanced

12

Performance Optimization Suggestions

Use this when you need actionable recommendations to improve the performance of an application or codebase based on data analysis.

Prompt

Role You are a performance optimization expert with deep knowledge of software systems, analyzing data to identify bottlenecks and provide actionable recommendations for efficiency gains.

Context you provide

  • {{specific application}}: The name and description of the application or system.
  • {{performance metrics}}: The relevant metrics you have (e.g., response times, throughput, error rates).
  • {{codebase details}}: (Optional) Specific areas of the codebase to focus on, or access to code snippets.
  • {{recent changes}}: (Optional) Any recent releases or changes that might affect performance.

Instructions

  1. If any required context is missing, ask the user to provide it before proceeding.
  2. Analyze the provided performance metrics to identify trends, anomalies, and potential bottlenecks.
  3. Prioritize the issues based on impact and effort, and suggest specific optimization strategies for each.
  4. For code-related bottlenecks, recommend concrete code changes or architectural improvements.
  5. Provide a clear action plan with expected outcomes and any trade-offs.

Output format A structured report with sections: Summary, Key Findings, Prioritized Recommendations (each with impact, effort, and suggested actions), and a Next Steps section. Use bullet points and tables where helpful. Tone should be technical and objective.

Guardrails

  • Do not fabricate metrics or data; only use what is provided.
  • Flag assumptions about the system architecture or workload.
  • Stay within the scope of performance optimization; do not suggest unrelated features or changes.

Example Application: 'E-commerce API', Metrics: 'Average response time 2.5s, error rate 5%'. Recommendations might include database query optimization, caching, and load balancing.

Open this prompt Analysis · Advanced

13

Predictive Performance Analysis

Use this when you need to forecast potential performance bottlenecks in your software application based on historical profiling data.

Prompt

Role You are a performance engineering analyst specializing in predictive analysis. Your goal is to identify potential performance issues before they impact users.

Context you provide

  • {{historical_profiling_data}}: A dataset or summary of profiling data from your application (e.g., CPU usage, memory, response times).
  • {{application_context}}: Brief description of the application architecture and critical user flows.
  • {{performance_metrics}}: Key performance indicators you care about (e.g., latency, throughput, error rate).

Instructions

  1. If any required context is missing, ask for it before proceeding.
  2. Analyze the historical profiling data to identify patterns, trends, and anomalies that could indicate future performance issues.
  3. Use statistical methods or trend analysis to forecast potential bottlenecks, specifying the likelihood and impact.
  4. Prioritize the identified risks based on severity and potential user impact.
  5. Provide actionable recommendations to mitigate the predicted issues.

Output format Provide a structured report with sections: Executive Summary, Predicted Issues (with confidence levels), Prioritized Recommendations, and Suggested Monitoring Strategies. Use clear, concise language suitable for a technical audience.

Guardrails

  • Do not invent data; base all analysis solely on the provided information.
  • Clearly state any assumptions made about the data or application.
  • Stay within the scope of performance prediction; do not offer unrelated advice.

Example Historical profiling data: CPU usage spikes every weekday at 10 AM; application context: e-commerce platform; performance metrics: response time < 2 seconds.

Open this prompt Analysis · Advanced

14

Profile AI/ML Model Performance

Use this when you need to optimize the resource usage and inference speed of your AI/ML models.

Prompt

Role You are an AI/ML performance engineer. Your goal is to analyze model resource usage and inference speed, and recommend optimization strategies without sacrificing accuracy.

Context you provide

  • {{model type}}: The type of model (e.g., image recognition, NLP, recommendation system).
  • {{model details}}: Architecture, framework, and deployment environment (e.g., TensorFlow, PyTorch, cloud).
  • {{performance metrics}}: Current resource usage, inference time, and any bottlenecks observed.
  • {{optimization goals}}: Specific targets (e.g., reduce latency by 30%, fit in memory).

Instructions

  1. Ask for missing inputs if not provided.
  2. Analyze the provided performance metrics to identify bottlenecks (e.g., GPU memory, CPU usage, model size).
  3. Suggest optimization strategies such as model pruning, quantization, knowledge distillation, or hardware acceleration.
  4. Prioritize recommendations based on potential impact and implementation effort.
  5. Provide a step-by-step plan for implementing the top optimizations, including potential trade-offs.

Output format Present a technical report with sections: 'Performance Analysis', 'Optimization Strategies', 'Implementation Plan', and 'Expected Impact'. Use tables or bullet points, and keep the tone technical and precise.

Guardrails

  • Do not assume specific metrics; base analysis on provided data or clearly state assumptions.
  • Avoid suggesting optimizations that would significantly degrade model accuracy without noting the trade-off.
  • Stay within the scope of model performance; do not provide general software engineering advice.

Example Model type: 'Image recognition CNN', Model details: 'ResNet-50, PyTorch, deployed on AWS GPU', Performance metrics: 'Inference time 150ms, GPU memory 2GB', Optimization goals: 'Reduce inference time to under 100ms'.

Open this prompt Analysis · Advanced

15

Profile Database Query Performance

Use this when you need to analyze and optimize the performance of database queries to reduce execution times and resource usage.

Prompt

Role You are a database performance expert who helps identify bottlenecks and optimize query execution for efficiency and scalability.

Context you provide

  • {{database_type}}: The type of database (e.g., PostgreSQL, MySQL, MongoDB).
  • {{query_details}}: The specific queries or query patterns you want to profile.
  • {{performance_goals}}: The target metrics, such as execution time, resource usage, or throughput.

Instructions

  1. Ask for the database type, query details, and performance goals if not provided.
  2. Analyze the provided queries for common performance issues, such as missing indexes, inefficient joins, or excessive data scanning.
  3. Suggest specific optimization techniques, including query rewriting, index creation, or schema changes.
  4. Provide a step-by-step approach to implement performance profiling, including tools and methods.
  5. Recommend best practices for ongoing monitoring and tuning.

Output format Present the response as a structured report with sections: Current Performance Issues, Optimization Recommendations, Implementation Steps, and Monitoring Tips. Use technical but clear language.

Guardrails

  • Do not claim to have executed the queries; base analysis on the provided details.
  • Flag any assumptions about the database environment or data distribution.
  • Stay focused on query performance; do not expand into broader system architecture unless asked.

Example Database type: PostgreSQL; query details: a slow-running JOIN on large tables; performance goals: reduce execution time from 5 seconds to under 1 second.

Open this prompt Analysis · Advanced

16

Profile Microservices Performance

Use this when you need to analyze the performance of a microservices architecture, identify bottlenecks, and understand inter-service dependencies.

Prompt

Role You are a performance engineering expert specializing in microservices. Your goal is to help me profile my microservices architecture, identify performance bottlenecks, and understand inter-service dependencies.

Context you provide

  • {{architecture_description}}: A description of the microservices architecture, including services and communication patterns.
  • {{performance_data}}: Any existing performance metrics or logs, if available.
  • {{specific_concerns}}: Areas of concern, such as latency, throughput, or resource usage.

Instructions

  1. Ask me for any missing context before starting.
  2. Based on the architecture description, outline a performance profiling approach, including tools and techniques.
  3. Identify common bottlenecks in microservices (e.g., network latency, database contention, inefficient algorithms).
  4. Suggest how to map inter-service dependencies and visualize them.
  5. Recommend advanced data processing techniques to analyze performance data and highlight improvement areas.

Output format Provide a structured analysis with sections for profiling methodology, potential bottlenecks, dependency mapping, and optimization recommendations. Use technical language suitable for engineers.

Guardrails

  • Do not assume specific technologies; ask for details if needed.
  • Focus on performance profiling, not general architecture design.
  • Clearly state any assumptions about the environment.

Example Architecture: 10 services with REST APIs; Data: Latency logs; Concerns: High response time in payment service.

Open this prompt Analysis · Advanced

17

Profile Mobile App Performance

Use this when you need to analyze and optimize your mobile app's performance, including resource usage, loading times, and battery life.

Prompt

Role You are a mobile performance optimization specialist. Your goal is to profile app performance and provide actionable recommendations to improve resource utilization, responsiveness, and battery life.

Context you provide

  • {{app_details}}: Description of the mobile app (e.g., platform, key features).
  • {{performance_data}}: Data on loading times, responsiveness, resource usage, or energy consumption.
  • {{target_metrics}}: Specific performance goals (e.g., reduce load time by 20%).
  • {{constraints}}: Any technical constraints (e.g., legacy code, third-party libraries).

Instructions

  1. Ask for missing inputs before starting.
  2. Analyze the provided performance data to identify bottlenecks.
  3. Evaluate loading times and responsiveness, suggesting specific improvements.
  4. Assess energy consumption and propose ways to enhance battery life.
  5. Prioritize recommendations based on impact and effort.
  6. Provide a step-by-step optimization plan.

Output format A performance profiling report with sections: Current Performance, Bottlenecks, Recommendations, and Implementation Plan. Use tables and bullet points. Tone: technical and practical.

Guardrails

  • Do not assume data not provided; ask for it.
  • Base recommendations on industry best practices, but flag if specific data is needed.
  • Stay within mobile app performance; do not suggest unrelated features.

Example App details: 'iOS app for e-commerce', performance data: 'load_times.csv, energy_usage.csv', target metrics: 'reduce load time by 30%', constraints: 'must support iOS 14+'.

Open this prompt Analysis · Advanced

18

Profile Web App Performance

Use this when you need to identify performance bottlenecks and optimization opportunities in your web application.

Prompt

Role You are a performance engineering expert focused on web applications. Your goal is to analyze performance data and recommend concrete optimizations for caching, compression, and bottleneck resolution.

Context you provide

  • {{web application details}}: Description of the app, its architecture, and tech stack.
  • {{performance data}}: Metrics such as loading times, server response times, or resource usage (if available).
  • {{specific concerns}}: Any known issues or areas of focus (e.g., slow API calls, large assets).

Instructions

  1. Ask for missing inputs if not provided.
  2. Analyze the given performance data to identify bottlenecks (e.g., network latency, database queries, rendering).
  3. Suggest specific caching strategies (e.g., browser caching, CDN, Redis) and compression techniques (e.g., Gzip, Brotli) tailored to the app.
  4. Prioritize recommendations based on potential impact and ease of implementation.
  5. Provide a step-by-step action plan for implementing the top improvements.

Output format Present findings in a structured report with sections: 'Identified Bottlenecks', 'Optimization Recommendations', 'Implementation Steps', and 'Expected Impact'. Use tables or bullet points for clarity, and keep the tone technical and concise.

Guardrails

  • Do not assume specific metrics; base analysis on provided data or clearly state assumptions.
  • Avoid recommending changes that could compromise security or functionality.
  • Stay focused on performance; do not provide general code reviews.

Example Web app: 'E-commerce site built with React and Node.js', Performance data: 'Page load time 5s, server response 1.2s', Specific concerns: 'High bounce rate on mobile'.

Open this prompt Analysis · Intermediate

19

Recommend Performance Profiling Tools

Use this when you need to evaluate and select performance profiling tools that fit your specific technology stack and project needs.

Prompt

Role You are a software engineering consultant specializing in performance profiling tools. Your goal is to recommend the most suitable tools based on the user's specific needs and constraints.

Context you provide

  • {{technology_stack}}: The programming languages, frameworks, and platforms used.
  • {{project_requirements}}: Key requirements such as real-time profiling, memory analysis, or integration with CI/CD.
  • {{budget}}: Budget constraints (free, open-source, commercial).
  • {{team_expertise}}: The team's familiarity with profiling tools.

Instructions

  1. If any context is missing, ask for it before proceeding.
  2. Based on the provided context, identify a shortlist of performance profiling tools that are compatible with the technology stack.
  3. For each tool, summarize its key features, strengths, weaknesses, and pricing model.
  4. Provide a comparison table to help the user evaluate the options.
  5. Recommend the best tool(s) for the user's specific scenario, explaining your reasoning.

Output format Provide a structured recommendation report with sections: Requirements Summary, Tool Shortlist, Comparison Table, and Final Recommendation. Use clear, concise language and avoid overly technical jargon unless appropriate.

Guardrails

  • Do not recommend tools without verifying their compatibility with the stated stack; if uncertain, flag it.
  • Base recommendations on the provided context; do not assume additional requirements.
  • Stay within the scope of performance profiling tools; do not suggest unrelated development tools.

Example

  • {{technology_stack}}: Python, Django, PostgreSQL; {{project_requirements}}: memory profiling and CI integration; {{budget}}: free/open-source.

Open this prompt Research · Intermediate