Skip to content

sentry_init() takes too much time and blocks UI thread #896

@nenseso

Description

@nenseso

Description
Using sentry-native version 0.6.1, I tested the project startup speed and found that it took a very long time, 2.9s. I checked it through instruments-App Launch and found that the function stack is as follows. Is there any way to optimize it?
image
image

When does the problem happen

  • During build
  • During run-time
  • When capturing a hard crash

Environment

  • OS: [e.g. macOS 13.5.2, Apple M1]
  • Compiler: [AppleClang 14.0.3.14030022]
  • CMake version and config: [3.24.2]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions