• EnglishEspañol日本語한국어Português
  • ログイン今すぐ開始

この機械翻訳は、参考として提供されています。

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

問題を作成する

アプリの起動時間を構成する

Android エージェントを使用すると、「コールド タイム」および「ホット タイム」とも呼ばれるアプリの起動時間を報告できます。

アプリの起動時間を構成する

重要

この機能は、エージェント バージョン 6.9.0 以降で使用できます。

Android エージェントがアプリの起動時間を報告できるようにするには: アプリケーションのAndroidManifest.xmlに以下を追加します。

<application>
<!-- make sure to provide unique authorities if apply to multiple apps on the same device -->
<provider
android:name="com.newrelic.agent.android.rum.contentprovider.NewRelicAppContentProvider"
android:authorities="com.newrelic.android.agent.nrprovider.${applicationId}"
android:initOrder="200"
android:exported="false"/>
</application>

アプリの起動時間は、 AppLaunch/Cold指標とAppLaunch/Hot指標で報告されます。これらの起動時間のメトリクスを追跡するには、Query builder [クエリ ビルダーを]使用してカスタム ダッシュボードを作成します。Query builder [クエリビルダーを]使用するには、 one.newrelic.com > All capabilities> Capabilities > Query builderに移動します。

コールドおよびホット起動時間を取得するためのサンプル クエリを次に示します。

SELECT average(newrelic.timeslice.value ) AS 'AppLaunch/Cold' FROM Metric WHERE metricTimesliceName = 'AppLaunch/Cold' AND entity.guid = 'YOUR_APP_TOKEN' SINCE 1664218800000 UNTIL 1664220600000 TIMESERIES

データが表示されない場合は、 logcat出力のエラーを確認してください。

Copyright © 2024 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.