Product Benefits Pricing Guides Docs About Contact us Try it out
Performance

PostHog Android 3.73.1: Timestamp Allocation Check

PostHog Android 3.73.1 cuts Calendar allocations when reading timestamps. Track SDK overhead, memory pressure and event timing on your app.

· 3 min read

Analytics code runs on every tap, screen and network call. If it allocates objects on each event, the cost is small per call but adds up in busy screens, especially on low-memory devices where garbage collection causes dropped frames.

PostHog Android 3.73.1, with core 6.47.7, is a patch release with one change: it avoids unnecessary Calendar allocations when reading device-clock timestamps. The same fix shipped across the surveys Compose and server packages. It is not a feature, but it is a good reason to measure how much your analytics SDK costs your app.

Data Points to Track

  • sdk_version: PostHog Android and core versions in use
  • events_per_session: how many events the SDK handles
  • gc_count_per_session: garbage collections during a session
  • gc_pause_ms: total pause time attributed to collection
  • frame_drop_rate: slow and frozen frames on event-heavy screens
  • heap_usage_mb: memory at screen entry and exit
  • device_memory_class: low, mid or high
  • timestamp_skew_ms: difference between device and server time

Setup Steps

  1. Record your current version and baseline metrics before upgrading. You cannot show an improvement without a before.
  2. Pick three screens with high event volume, such as a feed, a search result list and a checkout flow.
  3. Capture a profile with Android Studio’s memory profiler on a low-end device for a fixed 60-second scenario.
  4. Count allocations attributed to the SDK’s timestamp code, then note the total.
  5. Upgrade to PostHog Android 3.73.1 and rerun the same scenario with the same device.
  6. Send the sdk_version as a property on your own performance events so releases can be compared in production.
  7. Roll out gradually and compare frame drop and GC metrics between versions.
  8. Check event ordering. Confirm timestamps still arrive in the expected sequence.

Actionable Insights

Do not expect a dramatic change. If allocations fall but frame drops do not move, the SDK was not your bottleneck and your time is better spent elsewhere. That is still a useful result.

If low-memory devices improve while high-end devices stay flat, prioritise upgrades for the cohort with the weakest hardware, which is often where uninstalls and poor ratings concentrate.

If timestamp skew rises after the upgrade, investigate your clock handling before blaming the SDK. Devices with wrong clocks have always produced odd event order, and a release is a convenient moment to notice them.

Over time, keep a small table of SDK versions against overhead. It makes later upgrade decisions faster and gives you evidence when a vendor asks why you are slow to adopt.

Common Pitfalls

Avoid measuring on a fast emulator, which hides allocation costs. Also avoid drawing conclusions from a single run, because garbage collection timing varies.

Why Product Teams Should Care

Performance work often stalls because nobody owns the cost of tooling. Product managers see a slow screen, engineers suspect the analytics layer, and the argument goes round in circles. A short, repeatable measurement settles it with evidence. It also helps you decide how many events a screen really needs. If a screen fires dozens of events per second, the better fix may be to batch or drop low-value events rather than wait for SDK optimisations. Treat each patch release as a prompt to re-check, not as a guarantee.