Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: tools/crashpad_database_util.ad

Issue 1022663002: Add crashpad_database_util and its man page (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Address review feedback Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « handler/mac/main.cc ('k') | tools/crashpad_database_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Crashpad Authors. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 :doctype: manpage
16
17 = crashpad_database_util(1)
18
19 == Name
20
21 crashpad_database_util - Operate on Crashpad crash report databases
22
23 == Synopsis
24
25 [verse]
26 *crashpad_database_util* ['OPTION…']
27
28 == Description
29
30 Operates on Crashpad crash report databases. The database’s settings can be
31 queried and modified, and information about crash reports stored in the
32 database can be displayed.
33
34 When this program is requested to both show and set information in a single
35 invocation, all “show” operations will be completed prior to beginning any “set”
36 operation.
37
38 Programs that use the Crashpad client library directly will not normally use
39 this tool, but may use the database through the programmatic interfaces in the
40 client library. This tool exists to allow developers to manipulate a Crashpad
41 database.
42
43 == Options
44 *-d*, *--database*='PATH'::
45 Use 'PATH' as the path to the Crashpad crash report database. This option is
46 required. If the database does not exist, it will be created, provided that the
47 parent directory of 'PATH' exists.
48
49 *--show-client-id*::
50 Show the client ID stored in the database’s settings. The client ID is formatted
51 as a UUID. The client ID is set when the database is created.
52
53 *--show-uploads-enabled*::
54 Show the status of the uploads-enabled bit stored in the database’s settings.
55 man_link:crashpad_handler[8] does not upload reports when this bit is false.
56 This bit is false when a database is created, and is under an application’s
57 control via the Crashpad client library interface.
58 +
59 See also *--set-uploads-enabled*.
60
61 *--show-last-upload-attempt-time*::
62 Show the last-upload-attempt time stored in the database’s settings. This value
63 is +0+, meaning “never,” when the database is created.
64 man_link:crashpad_handler[8] consults this value before attempting an upload to
65 implement its rate-limiting behavior. The database updates this value whenever
66 an upload is attempted.
67 +
68 See also *--set-last-upload-attempt-time*.
69
70 *--show-pending-reports*::
71 Show reports eligible for upload.
72
73 *--show-completed-reports*::
74 Show reports not eligible for upload. A report is moved from the “pending” state
75 to the “completed” state by man_link:crashpad_handler[8]. This may happen when a
76 report is successfully uploaded, when a report is not uploaded because uploads
77 are disabled, or when a report upload attempt fails and will not be retried.
78
79 *--show-all-report-info*::
80 With *--show-pending-reports* or *--show-completed-reports*, show all metadata
81 for each report displayed. Without this option, only report IDs will be shown.
82
83 *--show-report*='UUID'::
84 Show a report from the database looked up by its identifier, 'UUID', which must
85 be formatted in string representation per RFC 4122 §3. All metadata for each
86 report found via a *--show-report* option will be shown. If 'UUID' is not found,
87 the string +"not found"+ will be printed. If this program is only requested to
88 show a single report and it is not found, it will treat this as a failure for
89 the purposes of determining its exit status.
90
91 *--set-report-uploads-enabled*='BOOL'::
92 Enable or disable report upload in the database’s settings. 'BOOL' is a string
93 representation of a boolean value, such as +"0"+ or +"true"+.
94 +
95 See also *--show-uploads-enabled*.
96
97 *--set-last-upload-attempt-time*='TIME'::
98 Set the last-upload-attempt time in the database’s settings. 'TIME' is a string
99 representation of a time, which may be in 'yyyy-mm-dd hh:mm:ss' format, a
100 numeric +time_t+ value, or the special string +"never"+.
101 +
102 See also *--show-last-upload-attempt-time*.
103
104 *--utc*::
105 When showing times, do so in UTC as opposed to the local time zone. When setting
106 times, interpret ambiguous time strings in UTC as opposed to the local time
107 zone.
108
109 *--help*::
110 Display help and exit.
111
112 *--version*::
113 Output version information and exit.
114
115 == Examples
116
117 Shows all crash reports in a crash report database that are in the “completed”
118 state.
119 [subs="quotes"]
120 ----
121 $ *crashpad_database_util --database /tmp/crashpad_database \
122 --show-completed-reports*
123 23f9512b-63e1-4ead-9dcd-e2e21fbccc68
124 4bfca440-039f-4bc6-bbd4-6933cef5efd4
125 56caeff8-b61a-43b2-832d-9e796e6e4a50
126 ----
127
128 Disables report upload in a crash report database’s settings, and then verifies
129 that the change was made.
130 [subs="quotes"]
131 ----
132 $ *crashpad_database_util --database /tmp/crashpad_database \
133 --set-uploads-enabled false*
134 $ *crashpad_database_util --database /tmp/crashpad_database \
135 --show-uploads-enabled*
136 false
137 ----
138
139 == Exit Status
140
141 *0*::
142 Success.
143
144 *1*::
145 Failure, with a message printed to the standard error stream.
146
147 == See Also
148
149 man_link:crashpad_handler[8]
150
151 include::../../doc/man_footer.ad[]
OLDNEW
« no previous file with comments | « handler/mac/main.cc ('k') | tools/crashpad_database_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698