[llvm-profdata] Add support for weighted merge of profile data
[oota-llvm.git] / docs / CommandGuide / llvm-profdata.rst
index 210826a7babcd5a26059bb0261ae76fece5341e9..a4b18f301e427f939fe8811fd5044344f2a456ee 100644 (file)
@@ -28,7 +28,7 @@ MERGE
 SYNOPSIS
 ^^^^^^^^
 
 SYNOPSIS
 ^^^^^^^^
 
-:program:`llvm-profdata merge` [*options*] [*filenames...*]
+:program:`llvm-profdata merge` [*options*] [*filename[:weight]...*]
 
 DESCRIPTION
 ^^^^^^^^^^^
 
 DESCRIPTION
 ^^^^^^^^^^^
@@ -37,6 +37,10 @@ DESCRIPTION
 generated by PGO instrumentation and merges them together into a single
 indexed profile data file.
 
 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
 ^^^^^^^
 
 OPTIONS
 ^^^^^^^