)]}'
{
  "commit": "ec288c2d7fd415dec3237527f4d5792cc00ac2cf",
  "tree": "0cca51ec12d2ca03594791ea08c923e68b94680f",
  "parents": [
    "0746231b9f48f2f86a0070bf7f70aa521efb9ab3"
  ],
  "author": {
    "name": "Songchun Fan",
    "email": "schfan@google.com",
    "time": "Tue Nov 01 16:50:10 2022 -0700"
  },
  "committer": {
    "name": "Songchun Fan",
    "email": "schfan@google.com",
    "time": "Thu Nov 03 16:59:10 2022 -0700"
  },
  "message": "[pm/metrics][1/n] generating atoms for successful apk installs\n\n+ Initial implementation of PackageMetrics.\n+ Metrics collection for successful apk installs including step\n  durations.\n\nNotice that only part of the metrics is filled at the moment. Followup\nCLs will fill in the missing fields.\n\nBUG: 249294752\nTest: manual steps as below\n$ (on the first terminal) m statsd_testdrive\n$ statsd_testdrive 524\n$ (on a second terminal) adb install ~/Downloads/com.whatsapp-2205720.apk\n...\nObserve the result on the first terminal:\n\nevent_metrics {\n  data {\n    aggregated_atom_info {\n      atom {\n        package_installation_session_reported {\n          session_id: 0\n          package_name: \"\"\n          uid: 10250\n          user_ids: 0\n          user_types: 1\n          original_user_ids: 0\n          original_user_types: 1\n          public_return_code: 1\n          internal_error_code: 0\n          apks_size_bytes: 0\n          version_code: 0\n          install_steps: 1\n          install_steps: 2\n          install_steps: 3\n          install_steps: 4\n          step_duration_millis: 53\n          step_duration_millis: 5\n          step_duration_millis: 0\n          step_duration_millis: 273\n          total_duration_millis: 1486\n          install_flags: 5242994\n          installer_package_uid: -1\n          original_installer_package_uid: -1\n          data_loader_type: 0\n          user_action_required_type: 0\n          is_instant: false\n          is_replace: true\n          is_system: false\n          is_inherit: false\n          is_installing_existing_as_user: false\n          is_move_install: false\n          is_staged: false\n        }\n      }\n      elapsed_timestamp_nanos: 3689176253653\n    }\n  }\n}\n\nBUG: 249294752\nTest: manual\nChange-Id: Ife24d75c6edd2da52be3fb0a8aea71ebf1446ca4\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7ea0c04562e262a34b6fa0cb64db1daece1e3bc2",
      "old_mode": 33188,
      "old_path": "services/core/java/com/android/server/pm/InstallPackageHelper.java",
      "new_id": "84b8264caf6a7cc8782c41c0fe8e8e3cfc51e328",
      "new_mode": 33188,
      "new_path": "services/core/java/com/android/server/pm/InstallPackageHelper.java"
    },
    {
      "type": "modify",
      "old_id": "573082a58255f087dde2b7fb4354c9af4c513bba",
      "old_mode": 33188,
      "old_path": "services/core/java/com/android/server/pm/InstallRequest.java",
      "new_id": "4443710dd08bc1c3e70fc5708cefb268f4383a97",
      "new_mode": 33188,
      "new_path": "services/core/java/com/android/server/pm/InstallRequest.java"
    },
    {
      "type": "modify",
      "old_id": "88469f539f94048cc180621ae4977840eb80da68",
      "old_mode": 33188,
      "old_path": "services/core/java/com/android/server/pm/InstallingSession.java",
      "new_id": "d13822a4d98c12b6deb0581e76c89ce75d801314",
      "new_mode": 33188,
      "new_path": "services/core/java/com/android/server/pm/InstallingSession.java"
    },
    {
      "type": "modify",
      "old_id": "4e8b0a14ae1d3bbee25e1a250ceea42361224395",
      "old_mode": 33188,
      "old_path": "services/core/java/com/android/server/pm/PackageHandler.java",
      "new_id": "66ef93d1219113e2a8b191e18776c942d1a594b1",
      "new_mode": 33188,
      "new_path": "services/core/java/com/android/server/pm/PackageHandler.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b725325eaaa98f74e53c4f0a5032d6b02e602088",
      "new_mode": 33188,
      "new_path": "services/core/java/com/android/server/pm/PackageMetrics.java"
    },
    {
      "type": "modify",
      "old_id": "ffce69e00d24fa87a4c16004404c511df2e426cc",
      "old_mode": 33188,
      "old_path": "services/core/java/com/android/server/pm/ReconcilePackageUtils.java",
      "new_id": "01d17f6444f514d4e0ce453ec43917f4c981cc5e",
      "new_mode": 33188,
      "new_path": "services/core/java/com/android/server/pm/ReconcilePackageUtils.java"
    }
  ]
}
