|
1 | 1 | --- |
2 | 2 | title: "pgomgr | Microsoft Docs" |
3 | 3 | ms.custom: "" |
4 | | -ms.date: "11/04/2016" |
5 | | -ms.reviewer: "" |
6 | | -ms.suite: "" |
| 4 | +ms.date: "03/14/2018" |
7 | 5 | ms.technology: ["cpp-tools"] |
8 | | -ms.tgt_pltfrm: "" |
9 | | -ms.topic: "article" |
| 6 | +ms.topic: "reference" |
10 | 7 | dev_langs: ["C++"] |
11 | 8 | helpviewer_keywords: ["pgomgr program", "profile-guided optimizations, pgomgr"] |
12 | 9 | ms.assetid: 74589126-df18-42c9-8739-26d60e148d6a |
13 | | -caps.latest.revision: 18 |
14 | 10 | author: "corob-msft" |
15 | 11 | ms.author: "corob" |
16 | 12 | manager: "ghogen" |
17 | 13 | ms.workload: ["cplusplus"] |
18 | 14 | --- |
19 | 15 | # pgomgr |
20 | | -Adds profile data from one or more .pgc files to the .pgd file. |
21 | | - |
22 | | -## Syntax |
23 | | - |
24 | | -``` |
25 | | -pgomgr [options] pgcfiles pgdfile |
26 | | -``` |
27 | | - |
28 | | -#### Parameters |
29 | | - `options` |
30 | | - The following options can be specified to pgomgr: |
31 | | - |
32 | | - **/help—**Displays available pgomgr options (short for /?). |
33 | | - |
34 | | - **/clear—**Causes the .pgd file to be cleared of all profile information. You cannot specify a .pgc file when **/clear** is specified. |
35 | | - |
36 | | - **/detail**—Displays detailed statistics, including flow graph coverage information. |
37 | | - |
38 | | - **/summary**—Displays per-function statistics. |
39 | | - |
40 | | - **/unique**—when used with **/summary**, causes decorated function names to display. The default, when /unique is not used, is for undecorated function names to be displayed. |
41 | | - |
42 | | - **/merge**[**:***n*]**—**Causes the data in the .pgc file or files to be added to the .pgd file. The optional parameter, *n*, lets you specify hat the data should be added *n* times. For example, if a scenario would commonly be done 6 times, you can do it once in a test run and add it to the .pgd file six times with **pgomgr /merge:6**. |
43 | | - |
44 | | - `pgcfiles` |
45 | | - One or more .pgc files whose profile data you want to merge into the .pgd file. You can specify a single .pgc file or multiple .pgc files. If you do not specify any .pgc files, pgomgr will merge all .pgc files whose filenames are the same as the .pgd file. |
46 | | - |
47 | | - `pgdfile` |
48 | | - The .pgd file into which you are merging data from the .pgc file or files. |
49 | | - |
50 | | -## Remarks |
51 | | - |
| 16 | + |
| 17 | +Adds profile data from one or more .pgc files to the .pgd file. |
| 18 | + |
| 19 | +## Syntax |
| 20 | + |
| 21 | +> **pgomgr** [*options*] *pgcfiles* *pgdfile* |
| 22 | +
|
| 23 | +### Parameters |
| 24 | + |
| 25 | +*options*<br/> |
| 26 | +The following options can be specified to **pgomgr**: |
| 27 | + |
| 28 | +- **/help** or **/?** Displays available **pgomgr** options. |
| 29 | + |
| 30 | +- **/clear** Causes the .pgd file to be cleared of all profile information. You cannot specify a .pgc file when **/clear** is specified. |
| 31 | + |
| 32 | +- **/detail** Displays detailed statistics, including flow graph coverage information. |
| 33 | + |
| 34 | +- **/summary** Displays per-function statistics. |
| 35 | + |
| 36 | +- **/unique** When used with **/summary**, causes decorated function names to display. The default, when **/unique** is not used, is for undecorated function names to be displayed. |
| 37 | + |
| 38 | +- **/merge**[**:***n*] Causes the data in the .pgc file or files to be added to the .pgd file. The optional parameter, *n*, lets you specify that the data should be added *n* times. For example, if a scenario would commonly be done six times to reflect how often it is done by customers, you can do it once in a test run and add it to the .pgd file six times with **pgomgr /merge:6**. |
| 39 | + |
| 40 | +*pgcfiles*<br/> |
| 41 | +One or more .pgc files whose profile data you want to merge into the .pgd file. You can specify a single .pgc file or multiple .pgc files. If you do not specify any .pgc files, **pgomgr** merges all .pgc files whose filenames are the same as the .pgd file. |
| 42 | + |
| 43 | +*pgdfile* |
| 44 | +The .pgd file into which you are merging data from the .pgc file or files. |
| 45 | + |
| 46 | +## Remarks |
| 47 | + |
52 | 48 | > [!NOTE] |
53 | | -> You can start this tool only from the [!INCLUDE[vsprvs](../../assembler/masm/includes/vsprvs_md.md)] command prompt. You cannot start it from a system command prompt or from File Explorer. |
54 | | - |
55 | | -## Example |
56 | | - In the following example, the .pgd file was cleared of profile data. |
57 | | - |
58 | | -``` |
59 | | -pgomgr /clear myapp.pgd |
60 | | -``` |
61 | | - |
62 | | - In the following example, the profile data in myapp1.pgc was added to the .pgd file 3 times. |
63 | | - |
64 | | -``` |
65 | | -pgomgr /merge:3 myapp1.pgc myapp.pgd |
66 | | -``` |
67 | | - |
68 | | - In the following example, profile data from all myapp#.pgc files is added to the myapp.pgd file. |
69 | | - |
70 | | -``` |
71 | | -pgomgr -merge myapp1.pgd |
72 | | -``` |
73 | | - |
74 | | -## See Also |
75 | | - [Tools for Manual Profile-Guided Optimization](../../build/reference/tools-for-manual-profile-guided-optimization.md) |
| 49 | +> You can start this tool only from a Visual Studio developer command prompt. You cannot start it from a system command prompt or from File Explorer. |
| 50 | +
|
| 51 | +## Example |
| 52 | + |
| 53 | +This example command clears the myapp.pgd file of profile data: |
| 54 | + |
| 55 | +`pgomgr /clear myapp.pgd` |
| 56 | + |
| 57 | +This example command adds profile data in myapp1.pgc to the .pgd file three times: |
| 58 | + |
| 59 | +`pgomgr /merge:3 myapp1.pgc myapp.pgd` |
| 60 | + |
| 61 | +In this example, profile data from all myapp#.pgc files is added to the myapp.pgd file. |
| 62 | + |
| 63 | +`pgomgr -merge myapp1.pgd` |
| 64 | + |
| 65 | +## See also |
| 66 | + |
| 67 | +[Tools for Manual Profile-Guided Optimization](../../build/reference/tools-for-manual-profile-guided-optimization.md) |
0 commit comments