কর্মক্ষমতা পরিদর্শন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
আপনার অ্যাপে কী ঘটছে তা বুঝতে সাহায্য করতে পারফরম্যান্স পরিদর্শন করুন এবং এটি আপনার প্রত্যাশা পূরণ করে তা নিশ্চিত করুন।
অ্যান্ড্রয়েড বেশ কিছু টুল সরবরাহ করে যা আপনি আপনার অ্যাপের কার্যক্ষমতা পরিদর্শন করতে ব্যবহার করতে পারেন। শুরু করার সময়, আমরা আপনাকে পরিদর্শনের সময় একবারে একটি এলাকায় ফোকাস করার পরামর্শ দিই। এই এলাকায় নিম্নলিখিত অন্তর্ভুক্ত থাকতে পারে:
- অ্যাপ স্টার্টআপ
- ধীর রেন্ডারিং (জ্যাঙ্ক)
- স্ক্রীন ট্রানজিশন এবং নেভিগেশন ইভেন্ট
- দীর্ঘ চলমান কাজ
- পটভূমিতে অপারেশন, যেমন I/O এবং নেটওয়ার্কিং
বিকল্পভাবে, আপনি আপনার অ্যাপের কর্মপ্রবাহের সমালোচনামূলক ব্যবহারকারীর যাত্রা পরিদর্শন করতে পারেন। এটি আপনাকে কোথায় পারফরম্যান্স এবং প্রত্যাশাগুলি সারিবদ্ধ নয় সে সম্পর্কে একটি সামগ্রিক বোঝাপড়া অর্জন করতে সহায়তা করতে পারে।
কর্মক্ষমতা পরিদর্শন করার সময় দুটি প্রধান পদ্ধতি আছে, ম্যানুয়াল এবং স্বয়ংক্রিয়। একটি নতুন এলাকা পরিদর্শন করার সময় সম্ভবত আপনি ম্যানুয়াল ডিবাগিং দিয়ে শুরু করবেন।
ম্যানুয়াল পরিদর্শন
আপনার অ্যাপের কোন এলাকা পরিদর্শন করবেন তা নির্ধারণ করার পরে, আপনি ঠিক কী ঘটছে তা সনাক্ত করতে বিভিন্ন সরঞ্জাম ব্যবহার করতে পারেন।
অ্যান্ড্রয়েড 9 এবং উচ্চতর চলমান ডিভাইসগুলিতে পারফরম্যান্স পরিদর্শন করার জন্য সবচেয়ে ব্যাপক টুল হল Perfetto । Perfetto ট্রেসিং তথ্যের সর্বোচ্চ সম্ভাব্য বিস্তারিত প্রদান করে। শক্তিশালী ফিল্টার ব্যবহার করে, আপনি আপনার প্রয়োজনের জন্য বিশদ স্তর সামঞ্জস্য করতে পারেন। অ্যান্ড্রয়েড ডিভাইস থেকে কীভাবে ট্রেস ক্যাপচার করবেন সে সম্পর্কে আরও তথ্যের জন্য, কুইকস্টার্ট দেখুন: অ্যান্ড্রয়েড গাইডে রেকর্ড ট্রেস ।
অ্যান্ড্রয়েড স্টুডিওতে তৈরি অ্যান্ড্রয়েড প্রোফাইলারগুলি আপনার অ্যাপের পারফরম্যান্সের মূল্যবান অন্তর্দৃষ্টিও প্রদান করতে পারে, যেখানে আপনি আপনার অ্যাপের বিশদ স্তর সীমিত করতে পারেন বা Android 9-এর আগে ডিভাইসে চলাকালীন।
আরও তথ্যের জন্য, সিস্টেম ট্রেসিং-এর ওভারভিউ দেখুন বা পারফরম্যান্স ডিবাগিং -এর উপর গভীরতার সিরিজ দেখুন।
স্বয়ংক্রিয় পরীক্ষা
ম্যানুয়াল পরিদর্শন ছাড়াও, আপনি কর্মক্ষমতা ডেটা সংগ্রহ এবং একত্রিত করতে স্বয়ংক্রিয় পরীক্ষা সেট আপ করতে পারেন। এটি আপনাকে ব্যবহারকারীরা আসলে কী দেখছে তা বুঝতে এবং কখন রিগ্রেশন ঘটতে পারে তা সনাক্ত করতে সহায়তা করে। আপনার অ্যাপের জন্য স্বয়ংক্রিয় কর্মক্ষমতা পরীক্ষা সেট আপ করার বিষয়ে আরও তথ্যের জন্য, আপনার অ্যাপের বেঞ্চমার্ক দেখুন।
আপনার অ্যাপের উন্নতিতে সহায়তা করার জন্য পারফরম্যান্স পরিদর্শন এবং নিরীক্ষণ করতে আপনি একাধিক সরঞ্জাম ব্যবহার করতে পারেন।
বেঞ্চমার্ক লাইব্রেরিগুলির সাথে স্থানীয়ভাবে কর্মক্ষমতা বুঝুন
উত্পাদন কর্মক্ষমতা বুঝতে
- যখন বিভিন্ন পারফরম্যান্স মেট্রিক্স পূর্বনির্ধারিত থ্রেশহোল্ড অতিক্রম করে তখন Android ভাইটাল আপনাকে সতর্ক করে আপনার অ্যাপের কর্মক্ষমতা উন্নত করতে সাহায্য করতে পারে।
- Firebase পারফরম্যান্স SDK আপনার অ্যাপের পারফরম্যান্স সম্পর্কে বিভিন্ন মেট্রিক্স সংগ্রহ করে। উদাহরণস্বরূপ, আপনি SDK ব্যবহার করতে পারেন ব্যবহারকারী কখন অ্যাপটি খুলবে এবং অ্যাপটি প্রতিক্রিয়াশীল হয়ে উঠার মধ্যে সময় পরিমাপ করতে, সম্ভাব্য স্টার্টআপ বাধাগুলি সনাক্ত করতে সহায়তা করে।
অ্যান্ড্রয়েড স্টুডিওর সাথে স্থানীয়ভাবে প্রোফাইল
- সিস্টেম ট্রেস বা স্ট্যাক স্যাম্পলিং ট্রেস রেকর্ড করতে এবং দেখতে Android স্টুডিও ব্যবহার করুন।
- অ্যান্ড্রয়েড স্টুডিও ব্যবহার করে ট্রেস রেকর্ড করুন । অতিরিক্ত তথ্যের জন্য, পারফরম্যান্স ডিবাগিং ভিডিও সিরিজ দেখুন।
- অ্যান্ড্রয়েড অ্যাপ্লিকেশান এবং অ্যান্ড্রয়েডে চলমান নেটিভ প্রসেস উভয়কেই প্রোফাইল করতে Android এর জন্য একটি নেটিভ স্ট্যাক স্যাম্পলিং টুল Simpleperf ব্যবহার করুন। এটি অ্যান্ড্রয়েডে জাভা এবং সি++ কোড উভয়ই প্রোফাইল করতে পারে।
উন্নত প্রোফাইলিং টুলস: পারফেটো ট্রেসিং
অতিরিক্ত সম্পদ
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Inspect performance to help you understand what is happening in your app and\nensure it meets your expectations.\n\nAndroid provides several tools you can use to inspect your app's performance.\nWhen getting started, we recommend you focus on one area at a time during\ninspection. These areas can include the following:\n\n- App startup\n- Slow rendering (jank)\n- Screen transitions and navigation events\n- Long running work\n- Operations in the background, such as I/O and networking\n\nAlternatively, you can inspect critical user journeys of your app's workflow.\nThis can help you gain a holistic understanding of where performance and\nexpectations don't align.\n\nThere are two main approaches when inspecting performance, manual and automated.\nIt's likely that you start with manual debugging when inspecting a new area.\n\nManual inspection\n-----------------\n\nAfter deciding which area of your app to inspect, you can use a variety of tools\nto identify what exactly is happening.\n\nThe most comprehensive tool to inspect performance on devices running Android 9\nand higher is [Perfetto](https://perfetto.dev/). Perfetto provides the highest possible\ndetail of tracing information. By using powerful filters, you can adjust the\nlevel of detail for your needs. For more information about how to capture traces\nfrom Android devices, see the [Quickstart: Record traces on\nAndroid](https://perfetto.dev/docs/quickstart/android-tracing) guide.\n\nThe [Android profilers](/studio/profile) built into Android Studio can also provide valuable\ninsights into your app's performance, where you can limit the level of detail to\nyour app, or when running on devices earlier than Android\n9.\n\nFor more information, see [Overview of system tracing](/topic/performance/tracing) or watch the in-depth\nseries on [performance debugging](https://www.youtube.com/playlist?list=PLWz5rJ2EKKc-xjSI-rWn9SViXivBhQUnp).\n\nAutomated testing\n-----------------\n\nIn addition to manual inspection, you can set up automated tests to collect and\naggregate performance data. This helps you understand what users are actually\nseeing and identify when regressions might occur. For more information about\nsetting up automated performance tests for your app, see [Benchmark your\napp](/topic/performance/benchmarking/benchmarking-overview).\n\nApp startup performance\n-----------------------\n\nThere are multiple tools you can use to inspect and monitor performance to help\nimprove your app.\n\n### Understand performance locally with Benchmark libraries\n\n- The [Macrobenchmark library](/topic/performance/benchmarking/macrobenchmark-overview) helps you measure larger end-user interactions, such as startup, interacting with the UI, and animations.\n- The [Microbenchmark library](/topic/performance/benchmarking/microbenchmark-overview) helps analyze performance of more granular, app-specific situations.\n\n### Understand performance in production\n\n- [Android vitals](/topic/performance/vitals) can help improve your app's performance by alerting you when various performance metrics exceed predetermined thresholds.\n- The [Firebase performance SDK](https://firebase.google.com/docs/perf-mon/get-started-android) collects various metrics about your app's performance. For example, you can use the SDK to measure the time between when the user opens the app and when the app becomes responsive, helping identify potential startup bottlenecks.\n\n### Profile locally with Android Studio\n\n- Use [Android Studio](/studio/profile) to record and view system traces or stack sampling traces.\n- [Record traces](/studio/profile/record-traces) using Android Studio. For additional information, see the [Performance Debugging video series](https://www.youtube.com/playlist?list=PLWz5rJ2EKKc-xjSI-rWn9SViXivBhQUnp).\n- Use [Simpleperf](https://android.googlesource.com/platform/system/extras/+/master/simpleperf/doc/README.md), a native stack sampling tool for Android, to profile both Android apps and native processes running on Android. It can profile both Java and C++ code on Android.\n\n### Advanced profiling tools: Perfetto tracing\n\n- [Perfetto](https://perfetto.dev/): a platform-wide tracing tool available on Android 10 (API level 29) and higher. For more information, see the [overview of Perfetto traces](https://perfetto.dev/docs/).\n- [Run Perfetto using `adb`](/studio/command-line/perfetto): describes how to run the `perfetto` command-line tool to capture traces.\n- [Recording a trace through the cmdline](https://perfetto.dev/docs/quickstart/android-tracing#recording-a-trace-through-the-cmdline): describes how to build and run the `perfetto` command-line tool to capture traces.\n- [Perfetto web-based trace viewer](https://perfetto.dev/docs/quickstart/android-tracing#recording-a-trace-through-the-perfetto-ui): opens Perfetto traces and displays a complete report. You can also open [Systrace](/topic/performance/tracing) traces in this viewer using the legacy UI option.\n\nAdditional resources\n--------------------\n\n- [Performance debugging - MAD skills series](https://www.youtube.com/playlist?list=PLWz5rJ2EKKc-xjSI-rWn9SViXivBhQUnp)\n- [Profile your app performance](/studio/profile)\n- [Write a Macrobenchmark](/topic/performance/benchmarking/macrobenchmark-overview)\n- [Microbenchmark](/topic/performance/benchmarking/microbenchmark-overview)"]]