summaryrefslogtreecommitdiff
path: root/docs/CommandGuide
diff options
context:
space:
mode:
authorNathan Slingerland <slingn@gmail.com>2015-12-04 00:00:20 +0000
committerNathan Slingerland <slingn@gmail.com>2015-12-04 00:00:20 +0000
commitb7250858d96b8ce567681214273ac0e62713c661 (patch)
tree48bc628bc2143ee86fe13b3ea3dbab70a4966f9a /docs/CommandGuide
parent7008dd751d0660fee014bb2fcc31c92eb540faa4 (diff)
[llvm-profdata] Add support for weighted merge of profile data
This change adds support for an optional weight when merging profile data with the llvm-profdata tool. Weights are specified by adding an option ':<weight>' suffix to the input file names. Adding support for arbitrary weighting of input profile data allows for relative importance to be placed on the input data from multiple training runs. Both sampled and instrumented profiles are supported. Reviewers: dnovillo, bogner, davidxl Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D14547 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254669 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CommandGuide')
-rw-r--r--docs/CommandGuide/llvm-profdata.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/CommandGuide/llvm-profdata.rst b/docs/CommandGuide/llvm-profdata.rst
index 210826a7bab..a4b18f301e4 100644
--- a/docs/CommandGuide/llvm-profdata.rst
+++ b/docs/CommandGuide/llvm-profdata.rst
@@ -28,7 +28,7 @@ MERGE
SYNOPSIS
^^^^^^^^
-:program:`llvm-profdata merge` [*options*] [*filenames...*]
+:program:`llvm-profdata merge` [*options*] [*filename[:weight]...*]
DESCRIPTION
^^^^^^^^^^^
@@ -37,6 +37,10 @@ DESCRIPTION
generated by PGO instrumentation and merges them together into a single
indexed profile data file.
+The profile counts in each input file can be scaled (multiplied) by specifying
+``<filename>:<weight>``, where `<weight>` is a decimal integer >= 1.
+A default weight of 1 is assumed if only `<filename>` is given.
+
OPTIONS
^^^^^^^