aboutsummaryrefslogtreecommitdiff
path: root/src/share/back/debugInit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/back/debugInit.c')
-rw-r--r--src/share/back/debugInit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/share/back/debugInit.c b/src/share/back/debugInit.c
index 2a1bd2172..e31fcf828 100644
--- a/src/share/back/debugInit.c
+++ b/src/share/back/debugInit.c
@@ -43,6 +43,9 @@
#include "vmDebug.h"
#include "DDMImpl.h"
+// ANDROID-CHANGED: Need to sent metrics before debugInit_exit
+#include "timing.h"
+
/* How the options get to OnLoad: */
#define XDEBUG "-Xdebug"
#define XRUN "-Xrunjdwp"
@@ -1403,6 +1406,10 @@ debugInit_exit(jvmtiError error, const char *msg)
{
enum exit_codes { EXIT_NO_ERRORS = 0, EXIT_JVMTI_ERROR = 1, EXIT_TRANSPORT_ERROR = 2 };
+ // ANDROID-CHANGED: We are about to exit(). Send ART cmd processing time,
+ // if there are any remaining.
+ timings_flush();
+
// Prepare to exit. Log error and finish logging
LOG_MISC(("Exiting with error %s(%d): %s", jvmtiErrorText(error), error,
((msg == NULL) ? "" : msg)));