Переглянути джерело

[test] Print out profiling statistics after a successful test run

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 10 роки тому
джерело
коміт
9c16548506
1 змінених файлів з 2 додано та 0 видалено
  1. 2
    0
      src/tests/test.c

+ 2
- 0
src/tests/test.c Переглянути файл

@@ -35,6 +35,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
35 35
 #include <ipxe/test.h>
36 36
 #include <ipxe/init.h>
37 37
 #include <ipxe/image.h>
38
+#include <usr/profstat.h>
38 39
 
39 40
 /** Current self-test set */
40 41
 static struct self_test *current_tests;
@@ -134,6 +135,7 @@ static int run_all_tests ( void ) {
134 135
 		return -EINPROGRESS;
135 136
 	} else {
136 137
 		printf ( "OK: all %d tests passed\n", total );
138
+		profstat();
137 139
 		return 0;
138 140
 	}
139 141
 }

Завантаження…
Відмінити
Зберегти