PerformancePkg: Make Dp print help information with -? flag in Shell.
Since Shell supports finding help information from resource section of application image. We enhance the Dp to add help information string. After the Dp are loaded in system the help string will be stored in resource section of the application image. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin <shumin.qiu@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// *++
|
||||
//
|
||||
// Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
// (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -28,12 +28,70 @@
|
||||
#langdef en-US "English"
|
||||
#langdef fr-FR "Français"
|
||||
|
||||
#string STR_DP_HELP_INFORMATION #language en-US ""
|
||||
".TH DP 0 "Display Performance metrics."\r\n"
|
||||
".SH NAME\r\n"
|
||||
"Display Performance metrics.\r\n"
|
||||
".SH SYNOPSIS\r\n"
|
||||
" \r\n"
|
||||
"If Profiling is implemented:\r\n"
|
||||
"dp [-b] [-v] [-x] [-s | -A | -R] [-T] [-P] [-t value] [-n count] [-c [token]] [-i] [-?]\r\n"
|
||||
"If Profiling is not implemented:\r\n"
|
||||
"dp [-b] [-v] [-x] [-s | -A | -R] [-t value] [-n count] [-c [token]] [-i] [-?]\r\n"
|
||||
".SH OPTIONS\r\n"
|
||||
" \r\n"
|
||||
" -b display on multiple pages\n\r\n"
|
||||
" -v display additional information\r\n"
|
||||
" -x prevent display of individual measurements for cumulative items\r\n"
|
||||
" -s display summary information only\r\n"
|
||||
" -A display all measurements in a list\r\n"
|
||||
" -R display all measurements in raw format\r\n"
|
||||
" -T display Trace measurements only(This option is available when Profiling is implemented)\r\n"
|
||||
" -P display Profile measurements only(This option is available when Profiling is implemented)\r\n"
|
||||
" -t VALUE Set display threshold to VALUE microseconds\r\n"
|
||||
" -n COUNT Limit display to COUNT lines in All and Raw modes\r\n"
|
||||
" -i display identifier\r\n"
|
||||
" -c TOKEN - Display pre-defined and custom cumulative data\r\n"
|
||||
" Pre-defined cumulative token are:\r\n"
|
||||
" 1. LoadImage:\r\n"
|
||||
" 2. StartImage:\r\n"
|
||||
" 3. DB:Start:\r\n"
|
||||
" 4. DB:Support:\r\n"
|
||||
" -? display dp help information\r\n"
|
||||
"\r\n"
|
||||
#language fr-FR ""
|
||||
".TH DP 0 "Montrer les données d'exécution"\r\n"
|
||||
".SH NAME\r\n"
|
||||
"Montrer les données d'exécution\r\n"
|
||||
".SH SYNOPSIS\r\n"
|
||||
" \r\n"
|
||||
"If Profiling is implemented:\r\n"
|
||||
"dp [-b] [-v] [-x] [-s | -A | -R] [-T] [-P] [-t value] [-n count] [-c [token]] [-i] [-?]\r\n"
|
||||
"If Profiling is not implemented:\r\n"
|
||||
"dp [-b] [-v] [-x] [-s | -A | -R] [-t value] [-n count] [-c [token]] [-i] [-?]\r\n"
|
||||
".SH OPTIONS\r\n"
|
||||
" \r\n"
|
||||
" -b montrer sur les pages multiples\r\n"
|
||||
" -v display additional information\r\n"
|
||||
" -x prevent display of individual measurements for cumulative items\r\n"
|
||||
" -s montrer les données de statistique seulement\r\n"
|
||||
" -A\r\n"
|
||||
" -R\r\n"
|
||||
" -T\r\n"
|
||||
" -P\r\n"
|
||||
" -t VALUE\r\n"
|
||||
" -n COUNT\r\n"
|
||||
" -i\r\n"
|
||||
" -c\r\n"
|
||||
" -? montrer dp aider l'information\r\n"
|
||||
"\r\n"
|
||||
|
||||
#string STR_DP_HELP_HEAD #language en-US "\nDisplay Performance metrics\n"
|
||||
#language fr-FR "\nMontrer les données d'exécution\n"
|
||||
#string STR_DP_HELP_FLAGS #language en-US "dp [-b] [-v] [-x] [-s | -A | -R] [-T] [-P] [-t value] [-n count] [-c [token]] [-i] [-h | -?]\n"
|
||||
#language fr-FR "dp [-b] [-v] [-x] [-s | -A | -R] [-T] [-P] [-t value] [-n count] [-c [token]] [-i] [-h | -?]\n"
|
||||
#string STR_DP_HELP_FLAGS_2 #language en-US "dp [-b] [-v] [-x] [-s | -A | -R] [-t value] [-n count] [-c [token]] [-i] [-h | -?]\n"
|
||||
#language fr-FR "dp [-b] [-v] [-x] [-s | -A | -R] [-t value] [-n count] [-c [token]] [-i] [-h | -?]\n"
|
||||
#string STR_DP_HELP_FLAGS #language en-US "dp [-b] [-v] [-x] [-s | -A | -R] [-T] [-P] [-t value] [-n count] [-c [token]] [-i] [-?]\n"
|
||||
#language fr-FR "dp [-b] [-v] [-x] [-s | -A | -R] [-T] [-P] [-t value] [-n count] [-c [token]] [-i] [-?]\n"
|
||||
#string STR_DP_HELP_FLAGS_2 #language en-US "dp [-b] [-v] [-x] [-s | -A | -R] [-t value] [-n count] [-c [token]] [-i] [-?]\n"
|
||||
#language fr-FR "dp [-b] [-v] [-x] [-s | -A | -R] [-t value] [-n count] [-c [token]] [-i] [-?]\n"
|
||||
#string STR_DP_HELP_PAGINATE #language en-US " -b display on multiple pages\n"
|
||||
#language fr-FR " -b montrer sur les pages multiples\n"
|
||||
#string STR_DP_HELP_VERBOSE #language en-US " -v display additional information\n"
|
||||
|
Reference in New Issue
Block a user