-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
184 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Tracing Android for .NET applications with built-in capabilities |
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
4 changes: 2 additions & 2 deletions
4
...ava/mono/android/app/DumpTracingData.java → ...o/android/app/StopTracingAndDumpData.java
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package mono.android.app; | ||
|
||
public class DumpTracingData extends android.content.BroadcastReceiver { | ||
public class StopTracingAndDumpData extends android.content.BroadcastReceiver { | ||
@Override | ||
public void onReceive (android.content.Context context, android.content.Intent intent) { | ||
mono.android.Runtime.dumpTracingData (); | ||
mono.android.Runtime.stopTracingAndDumpData (); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,39 @@ | ||
#pragma once | ||
|
||
#include <cstdint> | ||
|
||
namespace xamarin::android { | ||
enum class TracingAutoStartMode | ||
{ | ||
None, | ||
|
||
// Start tracing as soon as possible at the application startup | ||
Startup, | ||
|
||
// Start after an initial delay, counting from the application startup | ||
Delay, | ||
|
||
// At the application startup, prepare for tracing at a later point. This is to avoid | ||
// unnecessary delays to load the tracing shared library and initialize everything. | ||
// Tracing itself will need to be started by a p/invoke or an intent. | ||
JustInit, | ||
}; | ||
|
||
enum class TracingAutoStopMode | ||
{ | ||
None, | ||
|
||
// Stop tracing after the designated delay, counted from the moment tracing was started | ||
DelayFromStart, | ||
|
||
// Stop tracing after the designated delay, counting from application startup | ||
AbsoluteDelay, | ||
}; | ||
|
||
class TracingConstants | ||
{ | ||
public: | ||
static inline constexpr size_t DEFAULT_STOP_DELAY_MS = 2000; // 2s | ||
static inline constexpr size_t DEFAULT_START_DELAY_MS = 0; | ||
}; | ||
} |