forked from getsentry/sentry-cocoa
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(profiling): add API to start/stop a continuous session (getsentr…
- Loading branch information
1 parent
f34ea30
commit 192c140
Showing
7 changed files
with
90 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#import "SentryContinuousProfiler.h" | ||
#import "SentryInternalDefines.h" | ||
|
||
@implementation SentryContinuousProfiler | ||
|
||
#pragma mark - Public | ||
|
||
+ (void)start | ||
{ | ||
// TODO: start a continuous profiling session | ||
SENTRY_GRACEFUL_FATAL(@"TODO: start a continuous profiling session"); | ||
} | ||
|
||
+ (void)stop | ||
{ | ||
// TODO: stop the continuous profiling session | ||
SENTRY_GRACEFUL_FATAL(@"TODO: stop the continuous profiling session"); | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
* An interface to the new continuous profiling implementation. | ||
*/ | ||
@interface SentryContinuousProfiler : NSObject | ||
|
||
/** Start a continuous profiling session if one doesn't already exist. */ | ||
+ (void)start; | ||
|
||
/** Stop a continuous profiling session if there is one ongoing. */ | ||
+ (void)stop; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters