gprof2dot 2025.4.14__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,429 @@
1
+ Metadata-Version: 2.4
2
+ Name: gprof2dot
3
+ Version: 2025.4.14
4
+ Summary: Generate a dot graph from the output of several profilers.
5
+ Home-page: https://github.com/jrfonseca/gprof2dot
6
+ Author: Jose Fonseca
7
+ Author-email: jose.r.fonseca@gmail.com
8
+ License: LGPL
9
+ Classifier: Development Status :: 6 - Mature
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Topic :: Software Development
16
+ Requires-Python: >=3.8
17
+ Description-Content-Type: text/markdown
18
+ License-File: LICENSE.txt
19
+ Dynamic: license-file
20
+
21
+ # About _gprof2dot_
22
+
23
+ This is a Python script to convert the output from many profilers into a [dot graph](https://www.graphviz.org/doc/info/lang.html).
24
+
25
+ It can:
26
+
27
+ * read output from:
28
+ * [Linux perf](https://perf.wiki.kernel.org/)
29
+ * [Valgrind's callgrind tool](https://valgrind.org/docs/manual/cl-manual.html)
30
+ * [OProfile](https://oprofile.sourceforge.net/)
31
+ * [Sysprof](http://www.sysprof.com/)
32
+ * [Xperf](https://learn.microsoft.com/en-us/windows-hardware/test/wpt/)
33
+ * [VTune](https://www.intel.com/content/www/us/en/developer/tools/oneapi/vtune-profiler.html)
34
+ * [Very Sleepy](https://www.codersnotes.com/sleepy/)
35
+ * [Python profilers](https://docs.python.org/3/library/profile.html#profile-stats)
36
+ * [Java's HPROF](https://docs.oracle.com/javase/7/docs/technotes/samples/hprof.html)
37
+ * prof, [gprof](https://sourceware.org/binutils/docs/gprof/)
38
+ * [DTrace](https://en.wikipedia.org/wiki/DTrace)
39
+ * stackcollapse from [FlameGraph](https://github.com/brendangregg/FlameGraph)
40
+ * prune nodes and edges below a certain threshold;
41
+ * use an heuristic to propagate time inside mutually recursive functions;
42
+ * use color efficiently to draw attention to hot-spots;
43
+ * work on any platform where Python and Graphviz is available, i.e, virtually anywhere;
44
+ * compare two graphs with almost identical structures for the analysis of performance metrics such as time or function calls.
45
+
46
+ **If you want an interactive viewer for the graphs generated by _gprof2dot_, check [xdot.py](https://github.com/jrfonseca/xdot.py).**
47
+
48
+
49
+ # Status
50
+
51
+ _gprof2dot_ currently fulfills my needs, and I have little or no time for its
52
+ maintenance. So I'm afraid that any requested features are unlikely to be
53
+ implemented, and I might be slow processing issue reports or pull requests.
54
+
55
+ [![Build Status](https://github.com/jrfonseca/gprof2dot/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/jrfonseca/gprof2dot/actions/workflows/build.yml)
56
+ [![codecov](https://codecov.io/gh/jrfonseca/gprof2dot/branch/main/graph/badge.svg?token=pBvnAuazx0)](https://codecov.io/gh/jrfonseca/gprof2dot)
57
+
58
+
59
+ # Example
60
+
61
+ This is the result from the [example data](https://linuxgazette.net/100/misc/vinayak/overall-profile.txt) in the [Linux Gazette article](https://linuxgazette.net/100/vinayak.html) with the default settings:
62
+
63
+ ![Sample](./sample.svg)
64
+
65
+ # Requirements
66
+
67
+ * [Python](https://www.python.org/download/): known to work with version >=3.8; it will most likely _not_ work with earlier releases.
68
+ * [Graphviz](https://www.graphviz.org/Download.php): tested with version 2.26.3, but should work fine with other versions.
69
+
70
+ ## Windows users
71
+
72
+ * Download and install [Python for Windows](https://www.python.org/download/)
73
+ * Download and install [Graphviz for Windows](https://www.graphviz.org/Download_windows.php)
74
+
75
+ ## Linux users
76
+
77
+ On Debian/Ubuntu run:
78
+
79
+ apt-get install python3 graphviz
80
+
81
+ On RedHat/Fedora run
82
+
83
+ yum install python3 graphviz
84
+
85
+
86
+ # Download
87
+
88
+ * [PyPI](https://pypi.python.org/pypi/gprof2dot/)
89
+
90
+ pip install gprof2dot
91
+
92
+ * [Standalone script](https://raw.githubusercontent.com/jrfonseca/gprof2dot/main/gprof2dot.py)
93
+
94
+ * [Git repository](https://github.com/jrfonseca/gprof2dot)
95
+
96
+
97
+ # Documentation
98
+
99
+ ## Usage
100
+
101
+ ```
102
+ Usage:
103
+ gprof2dot.py [options] [file] ...
104
+
105
+ Options:
106
+ -h, --help show this help message and exit
107
+ -o FILE, --output=FILE
108
+ output filename [stdout]
109
+ -n PERCENTAGE, --node-thres=PERCENTAGE
110
+ eliminate nodes below this threshold [default: 0.5]
111
+ -e PERCENTAGE, --edge-thres=PERCENTAGE
112
+ eliminate edges below this threshold [default: 0.1]
113
+ -f FORMAT, --format=FORMAT
114
+ profile format: axe, callgrind, collapse, dtrace,
115
+ hprof, json, oprofile, perf, prof, pstats, sleepy,
116
+ sysprof or xperf [default: prof]
117
+ --total=TOTALMETHOD preferred method of calculating total time: callratios
118
+ or callstacks (currently affects only perf format)
119
+ [default: callratios]
120
+ -c THEME, --colormap=THEME
121
+ color map: bw, color, gray, pink or print [default:
122
+ color]
123
+ -s, --strip strip function parameters, template parameters, and
124
+ const modifiers from demangled C++ function names
125
+ --color-nodes-by-selftime
126
+ color nodes by self time, rather than by total time
127
+ (sum of self and descendants)
128
+ -w, --wrap wrap function names
129
+ --show-samples show function samples
130
+ --node-label=MEASURE measurements to on show the node (can be specified
131
+ multiple times): self-time, self-time-percentage,
132
+ total-time or total-time-percentage [default: total-
133
+ time-percentage, self-time-percentage]
134
+ --list-functions=LIST_FUNCTIONS
135
+ list functions available for selection in -z or -l,
136
+ requires selector argument ( use '+' to select all).
137
+ Recall that the selector argument is used with
138
+ Unix/Bash globbing/pattern matching, and that entries
139
+ are formatted '<pkg>:<linenum>:<function>'. When
140
+ argument starts with '%', a dump of all available
141
+ information is performed for selected entries, after
142
+ removal of leading '%'.
143
+ -z ROOT, --root=ROOT prune call graph to show only descendants of specified
144
+ root function
145
+ -l LEAF, --leaf=LEAF prune call graph to show only ancestors of specified
146
+ leaf function
147
+ --depth=DEPTH prune call graph to show only descendants or ancestors
148
+ until specified depth
149
+ --skew=THEME_SKEW skew the colorization curve. Values < 1.0 give more
150
+ variety to lower percentages. Values > 1.0 give less
151
+ variety to lower percentages
152
+ -p FILTER_PATHS, --path=FILTER_PATHS
153
+ Filter all modules not in a specified path
154
+ --compare Compare two graphs with almost identical structure. With this
155
+ option two files should be provided.gprof2dot.py
156
+ [options] --compare [file1] [file2] ...
157
+ --compare-tolerance=TOLERANCE
158
+ Tolerance threshold for node difference
159
+ (default=0.001%).If the difference is below this value
160
+ the nodes are considered identical.
161
+ --compare-only-slower
162
+ Display comparison only for function which are slower
163
+ in second graph.
164
+ --compare-only-faster
165
+ Display comparison only for function which are faster
166
+ in second graph.
167
+ --compare-color-by-difference
168
+ Color nodes based on the value of the difference.
169
+ Nodes with the largest differences represent the hot
170
+ spots.
171
+ ```
172
+
173
+ ## Examples
174
+
175
+ ### Linux perf
176
+
177
+ perf record -g -- /path/to/your/executable
178
+ perf script | c++filt | gprof2dot.py -f perf | dot -Tpng -o output.png
179
+
180
+ ### oprofile
181
+
182
+ opcontrol --callgraph=16
183
+ opcontrol --start
184
+ /path/to/your/executable arg1 arg2
185
+ opcontrol --stop
186
+ opcontrol --dump
187
+ opreport -cgf | gprof2dot.py -f oprofile | dot -Tpng -o output.png
188
+
189
+ ### xperf
190
+
191
+ If you're not familiar with xperf then read [this excellent article](https://blogs.msdn.com/b/pigscanfly/archive/2009/08/06/stack-walking-in-xperf.aspx) first. Then do:
192
+
193
+ * Start xperf as
194
+
195
+ xperf -on Latency -stackwalk profile
196
+
197
+ * Run your application.
198
+
199
+ * Save the data.
200
+ `
201
+ xperf -d output.etl
202
+
203
+ * Start the visualizer:
204
+
205
+ xperf output.etl
206
+
207
+ * In _Trace_ menu, select _Load Symbols_. _Configure Symbol Paths_ if necessary.
208
+
209
+ * Select an area of interest on the _CPU sampling graph_, right-click, and select _Summary Table_.
210
+
211
+ * In the _Columns_ menu, make sure the _Stack_ column is enabled and visible.
212
+
213
+ * Right click on a row, choose _Export Full Table_, and save to _output.csv_.
214
+
215
+ * Then invoke gprof2dot as
216
+
217
+ gprof2dot.py -f xperf output.csv | dot -Tpng -o output.png
218
+
219
+ ### VTune Amplifier XE
220
+
221
+ * Collect profile data as (also can be done from GUI):
222
+
223
+ amplxe-cl -collect hotspots -result-dir output -- your-app
224
+
225
+ * Visualize profile data as:
226
+
227
+ amplxe-cl -report gprof-cc -result-dir output -format text -report-output output.txt
228
+ gprof2dot.py -f axe output.txt | dot -Tpng -o output.png
229
+
230
+ See also [Kirill Rogozhin's blog post](http://web.archive.org/web/20130506045856/http://software.intel.com:80/en-us/blogs/2013/04/05/making-visualized-call-graph-from-intel-vtune-amplifier-xe-results).
231
+
232
+ ### gprof
233
+
234
+ /path/to/your/executable arg1 arg2
235
+ gprof path/to/your/executable | gprof2dot.py | dot -Tpng -o output.png
236
+
237
+ ### python profile
238
+
239
+ python -m profile -o output.pstats path/to/your/script arg1 arg2
240
+ gprof2dot.py -f pstats output.pstats | dot -Tpng -o output.png
241
+
242
+ ### python cProfile (formerly known as lsprof)
243
+
244
+ python -m cProfile -o output.pstats path/to/your/script arg1 arg2
245
+ gprof2dot.py -f pstats output.pstats | dot -Tpng -o output.png
246
+
247
+ ### Java HPROF
248
+
249
+ java -agentlib:hprof=cpu=samples ...
250
+ gprof2dot.py -f hprof java.hprof.txt | dot -Tpng -o output.png
251
+
252
+ See [Russell Power's blog post](http://web.archive.org/web/20220122110828/http://rjp.io/2012/07/03/java-profiling/) for details.
253
+
254
+ ### DTrace
255
+
256
+ dtrace -x ustackframes=100 -n 'profile-97 /pid == 12345/ { @[ustack()] = count(); } tick-60s { exit(0); }' -o out.user_stacks
257
+ gprof2dot.py -f dtrace out.user_stacks | dot -Tpng -o output.png
258
+
259
+ # Notice: sometimes, the dtrace outputs format may be latin-1, and gprof2dot will fail to parse it.
260
+ # To solve this problem, you should use iconv to convert to UTF-8 explicitly.
261
+ # TODO: add an encoding flag to tell gprof2dot how to decode the profile file.
262
+ iconv -f ISO-8859-1 -t UTF-8 out.user_stacks | gprof2dot.py -f dtrace
263
+
264
+ ### stackcollapse
265
+
266
+ Brendan Gregg's FlameGraph tool takes as its input a text file containing one
267
+ line per sample. This format can be generated from various other inputs using
268
+ the `stackcollapse` scripts in the [FlameGraph
269
+ repository](https://github.com/brendangregg/FlameGraph). It can also be
270
+ generated by tools such as [py-spy](https://github.com/benfred/py-spy).
271
+
272
+ Example usage:
273
+
274
+ * Perf
275
+
276
+ perf record -g -- /path/to/your/executable
277
+ perf script | FlameGraph/stackcollapse-perf.pl > out.collapse
278
+ gprof2dot.py -f collapse out.collapse | dot -Tpng -o output.png
279
+
280
+ * Py-spy
281
+
282
+ py-spy record -p <pidfile> -f raw -o out.collapse
283
+ gprof2dot.py -f collapse out.collapse | dot -Tpng -o output.png
284
+
285
+ ## Compare Example
286
+
287
+ This image illustrates an example usage of the `--compare` and `--compare-color-by-difference` options.
288
+
289
+ ![Compare](./images/compare_diff.png)
290
+
291
+ Arrow pointing to the right indicate node where the function performed faster
292
+ in the profile provided as the second one (second profile), while arrow
293
+ pointing to the left indicate node where the function was faster in the profile
294
+ provided as the first one (first profile).
295
+
296
+ ### Node
297
+
298
+ +-----------------------------+
299
+ | function name \
300
+ | total time % -/+ total_diff \
301
+ | ( self time % ) -/+ self_diff /
302
+ | total calls1 / total calls2 /
303
+ +-----------------------------+
304
+
305
+ Where
306
+ - `total time %` and `self time %` come from the first profile
307
+ - `diff` is calculated as the absolute value of `time in the first profile - time in the second profile`.
308
+
309
+ > **Note** The compare option has been tested for pstats, axe and callgrind profiles.
310
+
311
+ ## Output
312
+
313
+ A node in the output graph represents a function and has the following layout:
314
+
315
+ +------------------------------+
316
+ | function name |
317
+ | total time % ( self time % ) |
318
+ | total calls |
319
+ +------------------------------+
320
+
321
+ where:
322
+
323
+ * _total time %_ is the percentage of the running time spent in this function and all its children;
324
+ * _self time %_ is the percentage of the running time spent in this function alone;
325
+ * _total calls_ is the total number of times this function was called (including recursive calls).
326
+
327
+ An edge represents the calls between two functions and has the following layout:
328
+
329
+ total time %
330
+ calls
331
+ parent --------------------> children
332
+
333
+ Where:
334
+
335
+ * _total time %_ is the percentage of the running time transferred from the children to this parent (if available);
336
+ * _calls_ is the number of calls the parent function called the children.
337
+
338
+ Note that in recursive cycles, the _total time %_ in the node is the same for the whole functions in the cycle, and there is no _total time %_ figure in the edges inside the cycle, since such figure would make no sense.
339
+
340
+ The color of the nodes and edges varies according to the _total time %_ value. In the default _temperature-like_ color-map, functions where most time is spent (hot-spots) are marked as saturated red, and functions where little time is spent are marked as dark blue. Note that functions where negligible or no time is spent do not appear in the graph by default.
341
+
342
+ ## Listing functions
343
+
344
+ The flag `--list-functions` permits listing the function entries found in the `gprof` input.
345
+ This is intended as a tool to prepare for utilisations with the `--leaf` (`-l`)
346
+ or `--root` (`-z`) flags.
347
+
348
+ ~~~
349
+ prof2dot.py -f pstats /tmp/myLog.profile --list-functions "test_segments:*:*"
350
+
351
+ test_segments:5:<module>,
352
+ test_segments:206:TestSegments,
353
+ test_segments:46:<lambda>
354
+ ~~~
355
+
356
+ - The selector argument is used with Unix/Bash globbing/pattern matching, in the same
357
+ fashion as performed by the `-l` and `-z` flags.
358
+
359
+ - Entries are formatted '\<pkg\>:\<linenum\>:\<function\>'.
360
+
361
+ - When selector argument starts with '%', a dump of all available information is
362
+ performed for selected entries, after removal of selector's leading '%'. If
363
+ selector is "+" or "*", the full list of functions is printed.
364
+
365
+
366
+ ## Frequently Asked Questions
367
+
368
+ ### How can I generate a complete call graph?
369
+
370
+ By default `gprof2dot.py` generates a _partial_ call graph, excluding nodes and edges with little or no impact in the total computation time. If you want the full call graph then set a zero threshold for nodes and edges via the `-n` / `--node-thres` and `-e` / `--edge-thres` options, as:
371
+
372
+ gprof2dot.py -n0 -e0
373
+
374
+ ### The node labels are too wide. How can I narrow them?
375
+
376
+ The node labels can get very wide when profiling C++ code, due to inclusion of scope, function arguments, and template arguments in demangled C++ function names.
377
+
378
+ If you do not need function and template arguments information, then pass the `-s` / `--strip` option to strip them.
379
+
380
+ If you want to keep all that information, or if the labels are still too wide, then you can pass the `-w` / `--wrap`, to wrap the labels. Note that because `dot` does not wrap labels automatically the label margins will not be perfectly aligned.
381
+
382
+ ### Why there is no output, or it is all in the same color?
383
+
384
+ Likely, the total execution time is too short, so there is not enough precision in the profile to determine where time is being spent.
385
+
386
+ You can still force displaying the whole graph by setting a zero threshold for nodes and edges via the `-n` / `--node-thres` and `-e` / `--edge-thres` options, as:
387
+
388
+ gprof2dot.py -n0 -e0
389
+
390
+ But to get meaningful results you will need to find a way to run the program for a longer time period (aggregate results from multiple runs).
391
+
392
+ ### Why don't the percentages add up?
393
+
394
+ You likely have an execution time too short, causing the round-off errors to be large.
395
+
396
+ See question above for ways to increase execution time.
397
+
398
+ ### Which options should I pass to gcc when compiling for profiling?
399
+
400
+ Options which are _essential_ to produce suitable results are:
401
+
402
+ * **`-g`** : produce debugging information
403
+ * **`-fno-omit-frame-pointer`** : use the frame pointer (frame pointer usage is disabled by default in some architectures like x86\_64 and for some optimization levels; it is impossible to walk the call stack without it)
404
+
405
+ _If_ you're using gprof you will also need `-pg` option, but nowadays you can get much better results with other profiling tools, most of which require no special code instrumentation when compiling.
406
+
407
+ You want the code you are profiling to be as close as possible as the code that you will
408
+ be releasing. So you _should_ include all options that you use in your release code, typically:
409
+
410
+ * **`-O2`** : optimizations that do not involve a space-speed tradeoff
411
+ * **`-DNDEBUG`** : disable debugging code in the standard library (such as the assert macro)
412
+
413
+ However many of the optimizations performed by gcc interfere with the accuracy/granularity of the profiling results. You _should_ pass these options to disable those particular optimizations:
414
+
415
+ * **`-fno-inline-functions`** : do not inline functions into their parents (otherwise the time spent on these functions will be attributed to the caller)
416
+ * **`-fno-inline-functions-called-once`** : similar to above
417
+ * **`-fno-optimize-sibling-calls`** : do not optimize sibling and tail recursive calls (otherwise tail calls may be attributed to the parent function)
418
+
419
+ If the granularity is still too low, you _may_ pass these options to achieve finer granularity:
420
+
421
+ * **`-fno-default-inline`** : do not make member functions inline by default merely because they are defined inside the class scope
422
+ * **`-fno-inline`** : do not pay attention to the inline keyword
423
+ Note however that with these last options the timings of functions called many times will be distorted due to the function call overhead. This is particularly true for typical C++ code which _expects_ that these optimizations to be done for decent performance.
424
+
425
+ See the [full list of gcc optimization options](https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html) for more information.
426
+
427
+ # Links
428
+
429
+ See the [wiki](https://github.com/jrfonseca/gprof2dot/wiki) for external resources, including complementary/alternative tools.
@@ -0,0 +1,7 @@
1
+ gprof2dot.py,sha256=NSkzwwA2A5DvdLmnV3B20eDkJey9Tzf3LRUQLnghl00,129795
2
+ gprof2dot-2025.4.14.dist-info/licenses/LICENSE.txt,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
3
+ gprof2dot-2025.4.14.dist-info/METADATA,sha256=mjt7USRvljZ1fK6t0ZA-vVCRsKNJu0a3kFclP_9U26E,19018
4
+ gprof2dot-2025.4.14.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
5
+ gprof2dot-2025.4.14.dist-info/entry_points.txt,sha256=EnDvrDZGFwYNxiDg4zj0M9ctm2rgNyoZ-GfT2jE1jbI,45
6
+ gprof2dot-2025.4.14.dist-info/top_level.txt,sha256=C06bnf8FHdqWbAAr_UEuznMA4grMV8yS2AdPaX6RuZw,10
7
+ gprof2dot-2025.4.14.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (78.1.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ gprof2dot = gprof2dot:main
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
@@ -0,0 +1 @@
1
+ gprof2dot