sentry-demos / ios

iOS Empower Plant
1 stars 4 forks source link

Add readCurrentDirectory slow method for profiling #11

Closed serglom21 closed 1 year ago

serglom21 commented 1 year ago

Type of Change

[ ] Bugfix [x] New Feature [ ] Enhancement [ ] Refactoring

Description

Introducing a method readCurrentDirectory which performs some I/O operations and loops through the current directory folders. This is a heavy performant operation on the CPU which causes a slow profile. This method also uses Fibonacci to generate a large number that defines how many times this process is repeated.

Testing

test_checkout_ios