# अपने ऐप की speed और battery का इस्तेमाल जाँचें

> किसी एजेंट से पूछें कि App Store पर आपका ऐप कैसा perform करता है: launch, hang, memory, disk और battery के Apple के आँकड़े, उनके पीछे के diagnostics, और सबसे ख़राब वाले का fix।

Source: https://air.build/hi/docs/app-store/check-your-apps-speed-and-battery-use/

Apple इस बारे में आँकड़े रखता है कि लोगों के डिवाइस पर आपका App Store ऐप कैसा perform करता है: वह कितनी जल्दी launch होता है, कब hang होता है, कितनी memory, disk और battery इस्तेमाल करता है। एजेंट इन्हें `asc performance` से पढ़ सकता है, जिसे उसकी help "Access performance metrics and diagnostic logs." बताती है। वह बता सकता है कि कोई version कैसा कर रहा है, क्या ख़राब हुआ है यह दिखा सकता है, और फिर उसे ठीक कर सकता है।

> [!NOTE]
> AirBuild में performance आँकड़ों की कोई स्क्रीन नहीं है। आप प्रोजेक्ट की चैट में किसी एजेंट से कहते हैं। crash reports के लिए देखें [फ़ीडबैक और crashes इकट्ठा करें (AirFeedback)](https://air.build/hi/docs/services/collect-feedback-and-crashes/)।

## पूछें कि आपका ऐप कैसा perform करता है

प्रोजेक्ट की चैट में पूछें, जैसे:

```text
How does the latest version perform? Check launch, hangs, memory, disk and battery, and tell me what got worse.
```

1. एजेंट `asc performance overview` से ऐप का overview पढ़ता है। help कहती है कि इसमें "aggregated performance data, regressions, and trends for an app." होता है।
2. वह ऐप के लिए (`asc performance metrics list`), या किसी एक बिल्ड के लिए (`asc performance metrics view`) आँकड़े पढ़ता है।
3. वह बिल्ड के diagnostics की सूची देता है (`asc performance diagnostics list`), और ज़रूरी वालों के logs पढ़ता है (`asc performance diagnostics view`)।
4. वह जो मिला उसके साथ जवाब देता है। वह आँकड़ों को chart card में भी दिखा सकता है: देखें [एजेंट का भेजा चार्ट या जाँच रिपोर्ट पढ़ें](https://air.build/hi/docs/agents/read-charts-and-checks-from-agents/#read-a-chart)।

ये आँकड़े पढ़ने से App Store Connect में कुछ नहीं बदलता।

## Apple क्या मापता है

`asc` की help इन तरह के metrics की सूची देती है: `ANIMATION`, `BATTERY`, `DISK`, `HANG`, `LAUNCH`, `MEMORY`, `STORAGE` और `TERMINATION`। आप इन सबके बारे में या सिर्फ़ कुछ के बारे में पूछ सकते हैं, जैसे सिर्फ़ memory और disk। हर एक क्या मापता है, इसके लिए Apple का [Analyzing the performance of your shipping app](https://developer.apple.com/documentation/xcode/analyzing-the-performance-of-your-shipping-app) देखें।

एक table में, overview ऐप का सबसे नया version दिखाता है, आँकड़ों की कितनी categories हैं, और Apple को कितने regressions और बढ़ते हुए items मिले।

### Diagnostics

हर बिल्ड के लिए, Apple diagnostic signatures की सूची भी देता है। help तीन तरह बताती है: `DISK_WRITES`, `HANGS` और `LAUNCHES`। हर signature के लिए, सूची उसका type, एक weight और, अगर Apple के पास हो, तो उसकी दिशा दिखाती है: `UP`, `DOWN` या `UNDEFINED`। हर signature के logs होते हैं जिन्हें एजेंट पढ़ सकता है।

## एजेंट से सबसे ख़राब वाला ठीक करवाएँ

जब आपको पता चल जाए कि क्या धीमा है, तो कहें, जैसे:

```text
Fix the worst hang you found.
```

एजेंट उस signature के logs पढ़ता है, उससे जुड़ा code ढूँढता है और उसे बदलता है। लोगों को fix आपके अगले version के साथ मिलता है: देखें [अपने ऐप का अपडेट ship करें](https://air.build/hi/docs/app-store/ship-an-update/)। नया version कुछ समय तक बाहर रहने के बाद, उसके आँकड़ों की पिछले version से तुलना करने के लिए फिर से पूछें।

## जब अभी पढ़ने को कुछ न हो

नए ऐप, या ऐसे ऐप जिसे कम लोग इस्तेमाल करते हैं, के अभी कोई आँकड़े न हों, ऐसा हो सकता है। Apple का [Analyzing the performance of your shipping app](https://developer.apple.com/documentation/xcode/analyzing-the-performance-of-your-shipping-app) बताता है कि आँकड़े कहाँ से आते हैं।

`asc` के पास इसके लिए अपना कोई संदेश नहीं है। आँकड़े ख़ाली आते हैं, और diagnostics की सूची भी। version के कुछ समय बाहर रहने के बाद फिर से पूछें।

## सवाल

**मेरे ऐप के crashes कहाँ हैं?**

AirFeedback में, अगर आपका ऐप उसे इस्तेमाल करता है: हर crash report अगली बार ऐप खुलने पर आती है। आप वहाँ से कोई crash एजेंट को सौंप सकते हैं। देखें [फ़ीडबैक और crashes इकट्ठा करें (AirFeedback)](https://air.build/hi/docs/services/collect-feedback-and-crashes/)।

**क्या मैं एक डिवाइस model जाँच सकता हूँ?**

हाँ। आँकड़ों को डिवाइस types तक सीमित किया जा सकता है, जो help के उदाहरणों में `iPhone15,2` की तरह लिखे जाते हैं। diagnostics की सूची (`asc performance diagnostics list`) को सीमित नहीं किया जा सकता। पूछते समय model का नाम बताएँ।

**क्या मैं raw आँकड़े रख सकता हूँ?**

एजेंट से उन्हें `asc performance download` से डाउनलोड करने को कहें, एक फ़ाइल के रूप में जो वह आपको चैट में भेज सकता है। उसे खोलने और सहेजने के लिए देखें [एजेंट को फ़ोटो, फ़ाइलें और स्केच भेजें](https://air.build/hi/docs/projects/send-photos-and-files/#open-files-in-the-chat)।

**क्या मुझे यह नियमित रूप से मिल सकता है?**

हाँ। एजेंट से हर हफ़्ते या हर release के बाद जाँचने को कहें, या ख़ुद एक Schedule जोड़ें। देखें [एजेंट के लिए काम schedule करें](https://air.build/hi/docs/agents/schedule-agent-work/)।

**एजेंट कौन-से commands इस्तेमाल करता है?**

[asc: एनालिटिक्स और फ़ाइनेंस](https://air.build/hi/docs/cli/asc-analytics/#performance) में `performance` commands।
