Skip to content

"Start/Stop Sampling Profiler" not working on Android #18044

@dannycochran

Description

@dannycochran

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment:
OS: macOS High Sierra 10.13.3
Node: 6.10.3
Yarn: 1.3.2
npm: 3.10.10
Watchman: Not Found
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: Not Found

Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.53.3 => 0.53.3

Target Platform: Android API 23, Nexus 5X

Steps to Reproduce

  1. create a new react-native app from scratch (or use the repo I provided below)
  2. react-native run-android
  3. open debugging menu
  4. tap "Start/Stop Sampling Profiler"
  5. get red screen and error

Expected Behavior

I would be able to start profiling memory usage in my react-native app

Actual Behavior

"TypeError: undefined is not a function (evaluating 'global.pokeSamplingProfiler()')"

screen shot 2018-02-21 at 9 55 19 am

Reproducible Demo

Either create a react-native repo from scratch, or use this repo here which is just that (no local modifications made after react-native init):

https://github.com/dannycochran/rn-profiler

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPlatform: AndroidAndroid applications.Ran CommandsOne of our bots successfully processed a command.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions