Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorRyan Lucia <rylucia@microsoft.com>2020-02-04 00:05:06 +0300
committerGitHub <noreply@github.com>2020-02-04 00:05:06 +0300
commitd44a5d3a0bf24970a8cb03ddc1f9c94dcfa57949 (patch)
tree3782c5c271913374ed559d2c52f0dc96446cbc73 /man
parent01b2e15c0667c974daa45d57a8e52594bcf7ea57 (diff)
[mini] Add method-triggered printing for runtime stats (#18621)
* [mini] Add optional method name to --stats (#18387) * Implement parsing for optional method name to --stats command line argument. * Implement parsing for optional method name to --stats command line argument. Co-authored-by: Kyle Markland <v-kymark@microsoft.com> Co-authored-by: Rene Garcia <v-regarc@microsoft.com> * Respond to PR feedback. * Refactored away helper functions. * Refactored counter setup into separate function. Moved stats optional method into its own condition. Co-authored-by: Kyle Markland <v-kymark@microsoft.com> Co-authored-by: Rene Garcia <v-regarc@microsoft.com> * Renamed mono_setup_counters->mono_enable_counters. Restore whitespace to 0a51d89c4238c46f07f8b5405383547c1530809b Co-authored-by: Kyle Markland <v-kymark@microsoft.com> Co-authored-by: Rene Garcia <v-regarc@microsoft.com> * [mini] Print header for stats. (#18442) * Add an enum for dumping stats at points in time. Print header before dumping stats in mini_cleanup. * Make print_stats_header private. * Remove unused variable. * Refactored print_stats_header to better accomodate optional methods for stats * Change printf calls to g_printf in response to feedback. * Undo changes in response to @CoffeeFlux 's feedback. Add g_printf calls to mini_cleanup * Avoid always printing stats at shutdown. * Condition on `mono_stats` instead of `mono_jit_stats`. * [mini] Global JIT Stats Printing (#18483) * Make print_jit_stats global to enable interp and JIT-triggered stat dumps. * Rename some functions for consistency. * Add a comment to clarify the necessary locking in different contexts. * Rename mono_print_jit_stats to mono_runtime_print_stats and make it more generic. * Rename runtime_cleanup_stats back to jit_stats_cleanup. * Fix a line that was indented with spaces. * [mini] parse fully qualified method name using mono_method_desc_new (#18499) * Make print_jit_stats global to enable interp and JIT-triggered stat dumps. * Rename some functions for consistency. * Add a comment to clarify the necessary locking in different contexts. * Use MonoMethodDesc struct and associated helpers to parse from command line args. Remove unused stats_method_name and setter function. Squashed commit of the following: commit de7410696dab10723c76f545076522daa17e85d1 Author: Rene Garcia <rgarc@mit.edu> Date: Thu Jan 16 23:01:23 2020 -0500 Utilize new stats printing function. commit 1e5038adfec06c670dbaced771a8ff9344502d17 Author: Rene Garcia <rgarc@mit.edu> Date: Thu Jan 16 22:37:53 2020 -0500 Remove unused stats_method_name and setter function. Use mono_method_desc_full_match instead of mono_method_desc_match. commit 04f86c66c139e064bc35738f955f960232eb6cbb Author: Rene Garcia <rgarc@mit.edu> Date: Thu Jan 16 18:11:37 2020 -0500 Modify mono_method_desc_match to actually match namespace and class. Add global MonoMethodDesc, and parse it from command line args. Leave TODO print statement in mono_jit_compile_method_inner. * Move mono_method_desc to mini-runtime header. Fix whitespace. * Cherry pick @KyleMarkland 's changes, and resolve merge conflicts. * Fix leak. Give better error message when parsing empty method name. * Move freeing of mono_stats_method_desc. Co-authored-by: KyleMarkland <59579632+KyleMarkland@users.noreply.github.com> * Add a conditional to transform.c to enable stat dumping from the interpreter. (#18540) * [mini] Use g_printerr instead of g_printf before exiting (#18574) * Rename g_printf -> g_print * Use g_printerr on errors instead of g_printf. * Pass NULL to mono_counters_dump. Revert g_printf to g_print. * Update manpage * Feedback Co-authored-by: rgarc <rgarc@users.noreply.github.com> Co-authored-by: KyleMarkland <59579632+KyleMarkland@users.noreply.github.com>
Diffstat (limited to 'man')
-rw-r--r--man/mono.16
1 files changed, 4 insertions, 2 deletions
diff --git a/man/mono.1 b/man/mono.1
index 6478fc2bcb7..7fc9dcdc25d 100644
--- a/man/mono.1
+++ b/man/mono.1
@@ -860,9 +860,11 @@ Instruct the runtime on the number of times that the method specified
by --compile (or all the methods if --compile-all is used) to be
compiled. This is used for testing the code generator performance.
.TP
-\fB--stats\fR
+\fB--stats=[method]\fR
Displays information about the work done by the runtime during the
-execution of an application.
+execution of an application. If a method (namespace.name:methodname)
+is specified, it will display that information when the method is
+first run in addition to the end of program execution.
.TP
\fB--wapi=hps|semdel\fR
Perform maintenance of the process shared data.