Toolverse
All skills

native-app-performance

by harperreed

Native macOS/iOS app performance profiling via xctrace/Time Profiler and CLI-only analysis of Instruments traces. Use when asked to profile, attach, record, or analyze Instruments .trace files, find hotspots, or optimize native app performance without opening Instruments UI.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Mobile
Views
3

About this skill

Native macOS/iOS app performance profiling via xctrace/Time Profiler and CLI-only analysis of Instruments traces. Use when asked to profile, attach, record, or analyze Instruments .trace files, find hotspots, or optimize native app performance without opening Instruments UI.

How to use

  1. Zainstaluj umiejętność, dodając katalog native-app-performance do swojego konfigu Claude (np. ~/.claude/skills/).

  2. Aby nagrać profil wydajności, wybierz jedną z dwóch metod: jeśli aplikacja już działa, użyj komendy attach z identyfikatorem procesu; jeśli chcesz uruchomić aplikację z profilerem, użyj komendy launch ze ścieżką do binarka. W obu przypadkach xctrace zapisze plik .trace na dysku.

  3. Ekstrahuj próbki czasu z pliku trace za pomocą skryptu extract_time_samples.py, podając ścieżkę do nagraniaego pliku trace. Skrypt wygeneruje plik XML zawierający dane czasowe.

  4. Pobierz adres ładowania sekcji __TEXT z uruchomionej aplikacji za pomocą vmmap i identyfikatora procesu — ten adres jest potrzebny do prawidłowej symbolizacji stosu wywołań (ASLR zmienia adresy przy każdym uruchomieniu).

  5. Uruchom skrypt top_hotspots.py, przekazując plik XML z próbkami, ścieżkę do binarka aplikacji, adres ładowania i liczbę top funkcji do wyświetlenia (np. top 30). Skrypt zwróci ranking funkcji zużywających najwięcej czasu CPU.

  6. Przeanalizuj wyniki — funkcje na górze listy to wąskie gardła. Upewnij się, że podczas nagrywania profilatora wyzwoliłeś powolną operację (otwarcie menu, odświeżenie danych itp.), aby uchwycić istotne dane.

Related skills

flutter-development

by aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

Mobile
1,1601,122

kotlin-multiplatform

by vitorpamplona

Platform abstraction decision-making for Amethyst KMP project. Guides when to abstract vs keep platform-specific,\nsource set placement (commonMain, jvmAndroid, platform-specific), expect/actual patterns. Covers primary targets\n(Android, JVM/Desktop, iOS) with web/wasm future

Mobile
15105

react-native-architecture

by wshobson

Build production React Native apps with Expo, navigation, native modules, offline sync, and cross-platform patterns. Use when developing mobile apps, implementing native integrations, or architecting React Native projects.

Mobile
3978

csharp-developer

by zenobi-us

Expert C# developer specializing in modern .NET development, ASP.NET Core, and cloud-native applications. Masters C# 12 features, Blazor, and cross-platform development with emphasis on performance and clean architecture.

Mobile
37126

create-plan

by antinomyhq

Generate detailed implementation plans for complex tasks. Creates comprehensive strategic plans in Markdown format with objectives, step-by-step implementation tasks using checkbox format, verification criteria, risk assessments, and alternative approaches. Use when users need

Mobile
13108

analyzing-financial-statements

by anthropics

This skill calculates key financial ratios and metrics from financial statement data for investment analysis

Mobile
16113