Debian Codegraph @

templates/man1/sprof.1.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:44+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. #-#-#-#-# archlinux: sprof.1.pot (PACKAGE VERSION) #-#-#-#-#
20 #. type: SY
21 #. #-#-#-#-# debian-trixie: sprof.1.pot (PACKAGE VERSION) #-#-#-#-#
22 #. type: TH
23 #. #-#-#-#-# debian-unstable: sprof.1.pot (PACKAGE VERSION) #-#-#-#-#
24 #. type: SY
25 #. #-#-#-#-# fedora-44: sprof.1.pot (PACKAGE VERSION) #-#-#-#-#
26 #. type: SY
27 #. #-#-#-#-# fedora-rawhide: sprof.1.pot (PACKAGE VERSION) #-#-#-#-#
28 #. type: SY
29 #. #-#-#-#-# mageia-cauldron: sprof.1.pot (PACKAGE VERSION) #-#-#-#-#
30 #. type: SY
31 #. #-#-#-#-# opensuse-leap-16-1: sprof.1.pot (PACKAGE VERSION) #-#-#-#-#
32 #. type: SY
33 #. #-#-#-#-# opensuse-tumbleweed: sprof.1.pot (PACKAGE VERSION) #-#-#-#-#
34 #. type: SY
35 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
36 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
37 #, no-wrap
38 msgid "sprof"
39 msgstr ""
40
41 #. type: TH
42 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
43 #: opensuse-tumbleweed
44 #, no-wrap
45 msgid "2026-02-08"
46 msgstr ""
47
48 #. type: TH
49 #: archlinux debian-unstable
50 #, no-wrap
51 msgid "Linux man-pages 6.18"
52 msgstr ""
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "NAME"
59 msgstr ""
60
61 #. type: Plain text
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "sprof - read and display shared object profiling data"
65 msgstr ""
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr ""
73
74 #. type: Plain text
75 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
76 #: opensuse-leap-16-1 opensuse-tumbleweed
77 msgid "[I<option>\\ .\\|.\\|.\\&] I<shared-object-path> [I<profile-data-path>]"
78 msgstr ""
79
80 #. type: SH
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "DESCRIPTION"
85 msgstr ""
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 msgid ""
91 "The B<sprof> command displays a profiling summary for the shared object "
92 "(shared library) specified as its first command-line argument. The "
93 "profiling summary is created using previously generated profiling data in "
94 "the (optional) second command-line argument. If the profiling data pathname "
95 "is omitted, then B<sprof> will attempt to deduce it using the soname of the "
96 "shared object, looking for a file with the name I<E<lt>sonameE<gt>.profile> "
97 "in the current directory."
98 msgstr ""
99
100 #. type: SH
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 #, no-wrap
104 msgid "OPTIONS"
105 msgstr ""
106
107 #. type: Plain text
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 msgid ""
111 "The following command-line options specify the profile output to be produced:"
112 msgstr ""
113
114 #. type: TP
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 #, no-wrap
118 msgid "B<--call-pairs>"
119 msgstr ""
120
121 #. type: TQ
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 #, no-wrap
125 msgid "B<-c>"
126 msgstr ""
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 msgid ""
132 "Print a list of pairs of call paths for the interfaces exported by the "
133 "shared object, along with the number of times each path is used."
134 msgstr ""
135
136 #. type: TP
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 #, no-wrap
140 msgid "B<--flat-profile>"
141 msgstr ""
142
143 #. type: TQ
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 #, no-wrap
147 msgid "B<-p>"
148 msgstr ""
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid ""
154 "Generate a flat profile of all of the functions in the monitored object, "
155 "with counts and ticks."
156 msgstr ""
157
158 #. type: TP
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 #, no-wrap
162 msgid "B<--graph>"
163 msgstr ""
164
165 #. type: TQ
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 #, no-wrap
169 msgid "B<-q>"
170 msgstr ""
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 msgid "Generate a call graph."
176 msgstr ""
177
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 msgid ""
182 "If none of the above options is specified, then the default behavior is to "
183 "display a flat profile and a call graph."
184 msgstr ""
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 msgid "The following additional command-line options are available:"
190 msgstr ""
191
192 #. type: TP
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, no-wrap
196 msgid "B<--help>"
197 msgstr ""
198
199 #. type: TQ
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 #, no-wrap
203 msgid "B<-?>"
204 msgstr ""
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 msgid "Display a summary of command-line options and arguments and exit."
210 msgstr ""
211
212 #. type: TP
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 #, no-wrap
216 msgid "B<--usage>"
217 msgstr ""
218
219 #. type: Plain text
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 msgid "Display a short usage message and exit."
223 msgstr ""
224
225 #. type: TP
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 #, no-wrap
229 msgid "B<--version>"
230 msgstr ""
231
232 #. type: TQ
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 #, no-wrap
236 msgid "B<-V>"
237 msgstr ""
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 msgid "Display the program version and exit."
243 msgstr ""
244
245 #. type: SH
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 #, no-wrap
249 msgid "STANDARDS"
250 msgstr ""
251
252 #. type: Plain text
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 msgid "GNU."
256 msgstr ""
257
258 #. type: SH
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 #, no-wrap
262 msgid "EXAMPLES"
263 msgstr ""
264
265 #. type: Plain text
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 msgid ""
269 "The following example demonstrates the use of B<sprof>. The example "
270 "consists of a main program that calls two functions in a shared object. "
271 "First, the code of the main program:"
272 msgstr ""
273
274 #. type: Plain text
275 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
276 #: opensuse-tumbleweed
277 #, no-wrap
278 msgid ""
279 "$B< cat prog.c>;\n"
280 "#include E<lt>stdlib.hE<gt>\n"
281 "\\&\n"
282 "void x1(void);\n"
283 "void x2(void);\n"
284 "\\&\n"
285 "int\n"
286 "main(int argc, char *argv[])\n"
287 "{\n"
288 " x1();\n"
289 " x2();\n"
290 " exit(EXIT_SUCCESS);\n"
291 "}\n"
292 msgstr ""
293
294 #. type: Plain text
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 msgid ""
298 "The functions I<x1>() and I<x2>() are defined in the following source file "
299 "that is used to construct the shared object:"
300 msgstr ""
301
302 #. type: Plain text
303 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
304 #: opensuse-tumbleweed
305 #, no-wrap
306 msgid ""
307 "$B< cat libdemo.c>;\n"
308 "#include E<lt>unistd.hE<gt>\n"
309 "\\&\n"
310 "void\n"
311 "consumeCpu1(int lim)\n"
312 "{\n"
313 " for (unsigned int j = 0; j E<lt> lim; j++)\n"
314 "\tgetppid();\n"
315 "}\n"
316 "\\&\n"
317 "void\n"
318 "x1(void) {\n"
319 " for (unsigned int j = 0; j E<lt> 100; j++)\n"
320 "\tconsumeCpu1(200000);\n"
321 "}\n"
322 "\\&\n"
323 "void\n"
324 "consumeCpu2(int lim)\n"
325 "{\n"
326 " for (unsigned int j = 0; j E<lt> lim; j++)\n"
327 "\tgetppid();\n"
328 "}\n"
329 "\\&\n"
330 "void\n"
331 "x2(void)\n"
332 "{\n"
333 " for (unsigned int j = 0; j E<lt> 1000; j++)\n"
334 "\tconsumeCpu2(10000);\n"
335 "}\n"
336 msgstr ""
337
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 msgid ""
342 "Now we construct the shared object with the real name I<libdemo.so.1.0.1>, "
343 "and the soname I<libdemo.so.1>:"
344 msgstr ""
345
346 #. type: Plain text
347 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
348 #: opensuse-tumbleweed
349 #, no-wrap
350 msgid ""
351 "$B< cc -g -fPIC -shared -Wl,-soname,libdemo.so.1 \\[rs]>\n"
352 "B< -o libdemo.so.1.0.1 libdemo.c>;\n"
353 msgstr ""
354
355 #. type: Plain text
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 msgid ""
359 "Then we construct symbolic links for the library soname and the library "
360 "linker name:"
361 msgstr ""
362
363 #. type: Plain text
364 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
365 #: opensuse-tumbleweed
366 #, no-wrap
367 msgid ""
368 "$B< ln -sf libdemo.so.1.0.1 libdemo.so.1>;\n"
369 "$B< ln -sf libdemo.so.1 libdemo.so>;\n"
370 msgstr ""
371
372 #. type: Plain text
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 msgid ""
376 "Next, we compile the main program, linking it against the shared object, and "
377 "then list the dynamic dependencies of the program:"
378 msgstr ""
379
380 #. type: Plain text
381 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
382 #: opensuse-tumbleweed
383 #, no-wrap
384 msgid ""
385 "$B< cc -g -o prog prog.c -L.\\& -ldemo>;\n"
386 "$B< ldd prog>;\n"
387 "\tlinux-vdso.so.1 =E<gt> (0x00007fff86d66000)\n"
388 "\tlibdemo.so.1 =E<gt> not found\n"
389 "\tlibc.so.6 =E<gt> /lib64/libc.so.6 (0x00007fd4dc138000)\n"
390 "\t/lib64/ld-linux-x86-64.so.2 (0x00007fd4dc51f000)\n"
391 msgstr ""
392
393 #. type: Plain text
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 msgid ""
397 "In order to get profiling information for the shared object, we define the "
398 "environment variable B<LD_PROFILE> with the soname of the library:"
399 msgstr ""
400
401 #. type: Plain text
402 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
403 #: opensuse-tumbleweed
404 #, no-wrap
405 msgid "$B< export LD_PROFILE=libdemo.so.1>;\n"
406 msgstr ""
407
408 #. type: Plain text
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 msgid ""
412 "We then define the environment variable B<LD_PROFILE_OUTPUT> with the "
413 "pathname of the directory where profile output should be written, and create "
414 "that directory if it does not exist already:"
415 msgstr ""
416
417 #. type: Plain text
418 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
419 #: opensuse-tumbleweed
420 #, no-wrap
421 msgid ""
422 "$B< export LD_PROFILE_OUTPUT=$(pwd)/prof_data>;\n"
423 "$B< mkdir -p $LD_PROFILE_OUTPUT>;\n"
424 msgstr ""
425
426 #. type: Plain text
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 msgid ""
430 "B<LD_PROFILE> causes profiling output to be I<appended> to the output file "
431 "if it already exists, so we ensure that there is no preexisting profiling "
432 "data:"
433 msgstr ""
434
435 #. type: Plain text
436 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
437 #: opensuse-tumbleweed
438 #, no-wrap
439 msgid "$B< rm -f $LD_PROFILE_OUTPUT/$LD_PROFILE.profile>;\n"
440 msgstr ""
441
442 #. type: Plain text
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 msgid ""
446 "We then run the program to produce the profiling output, which is written to "
447 "a file in the directory specified in B<LD_PROFILE_OUTPUT>:"
448 msgstr ""
449
450 #. type: Plain text
451 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
452 #: opensuse-tumbleweed
453 #, no-wrap
454 msgid ""
455 "$B< LD_LIBRARY_PATH=.\\& ./prog>;\n"
456 "$B< ls prof_data>;\n"
457 "libdemo.so.1.profile\n"
458 msgstr ""
459
460 #. type: Plain text
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 msgid ""
464 "We then use the B<sprof -p> option to generate a flat profile with counts "
465 "and ticks:"
466 msgstr ""
467
468 #. type: Plain text
469 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
470 #: opensuse-tumbleweed
471 #, no-wrap
472 msgid ""
473 "$B< sprof -p libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>;\n"
474 "Flat profile:\n"
475 "\\&\n"
476 "Each sample counts as 0.01 seconds.\n"
477 " % cumulative self self total\n"
478 " time seconds seconds calls us/call us/call name\n"
479 " 60.00 0.06 0.06 100 600.00 consumeCpu1\n"
480 " 40.00 0.10 0.04 1000 40.00 consumeCpu2\n"
481 " 0.00 0.10 0.00 1 0.00 x1\n"
482 " 0.00 0.10 0.00 1 0.00 x2\n"
483 msgstr ""
484
485 #. type: Plain text
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 msgid "The B<sprof -q> option generates a call graph:"
489 msgstr ""
490
491 #. type: Plain text
492 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
493 #: opensuse-tumbleweed
494 #, no-wrap
495 msgid ""
496 "$B< sprof -q libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>;\n"
497 "\\&\n"
498 "index % time self children called name\n"
499 "\\&\n"
500 " 0.00 0.00 100/100 x1 [1]\n"
501 "[0] 100.0 0.00 0.00 100 consumeCpu1 [0]\n"
502 "-----------------------------------------------\n"
503 " 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n"
504 "[1] 0.0 0.00 0.00 1 x1 [1]\n"
505 " 0.00 0.00 100/100 consumeCpu1 [0]\n"
506 "-----------------------------------------------\n"
507 " 0.00 0.00 1000/1000 x2 [3]\n"
508 "[2] 0.0 0.00 0.00 1000 consumeCpu2 [2]\n"
509 "-----------------------------------------------\n"
510 " 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n"
511 "[3] 0.0 0.00 0.00 1 x2 [3]\n"
512 " 0.00 0.00 1000/1000 consumeCpu2 [2]\n"
513 "-----------------------------------------------\n"
514 msgstr ""
515
516 #. type: Plain text
517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
519 msgid ""
520 "Above and below, the \"E<lt>UNKNOWNE<gt>\" strings represent identifiers "
521 "that are outside of the profiled object (in this example, these are "
522 "instances of I<main()>)."
523 msgstr ""
524
525 #. type: Plain text
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 msgid ""
529 "The B<sprof -c> option generates a list of call pairs and the number of "
530 "their occurrences:"
531 msgstr ""
532
533 #. type: Plain text
534 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
535 #: opensuse-tumbleweed
536 #, no-wrap
537 msgid ""
538 "$B< sprof -c libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>;\n"
539 "E<lt>UNKNOWNE<gt> x1 1\n"
540 "x1 consumeCpu1 100\n"
541 "E<lt>UNKNOWNE<gt> x2 1\n"
542 "x2 consumeCpu2 1000\n"
543 msgstr ""
544
545 #. type: SH
546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
548 #, no-wrap
549 msgid "SEE ALSO"
550 msgstr ""
551
552 #. type: Plain text
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 msgid "B<gprof>(1), B<ldd>(1), B<ld.so>(8)"
556 msgstr ""
557
558 #. type: TH
559 #: debian-trixie
560 #, no-wrap
561 msgid "2024-06-15"
562 msgstr ""
563
564 #. type: TH
565 #: debian-trixie
566 #, no-wrap
567 msgid "Linux man-pages 6.9.1"
568 msgstr ""
569
570 #. type: Plain text
571 #: debian-trixie
572 #, no-wrap
573 msgid "B<sprof> [I<option>]... I<shared-object-path> [I<profile-data-path>]\n"
574 msgstr ""
575
576 #. type: Plain text
577 #: debian-trixie fedora-44 fedora-rawhide
578 #, no-wrap
579 msgid ""
580 "$ B<cat prog.c>\n"
581 "#include E<lt>stdlib.hE<gt>\n"
582 "\\&\n"
583 "void x1(void);\n"
584 "void x2(void);\n"
585 "\\&\n"
586 "int\n"
587 "main(int argc, char *argv[])\n"
588 "{\n"
589 " x1();\n"
590 " x2();\n"
591 " exit(EXIT_SUCCESS);\n"
592 "}\n"
593 msgstr ""
594
595 #. type: Plain text
596 #: debian-trixie fedora-44 fedora-rawhide
597 #, no-wrap
598 msgid ""
599 "$ B<cat libdemo.c>\n"
600 "#include E<lt>unistd.hE<gt>\n"
601 "\\&\n"
602 "void\n"
603 "consumeCpu1(int lim)\n"
604 "{\n"
605 " for (unsigned int j = 0; j E<lt> lim; j++)\n"
606 "\tgetppid();\n"
607 "}\n"
608 "\\&\n"
609 "void\n"
610 "x1(void) {\n"
611 " for (unsigned int j = 0; j E<lt> 100; j++)\n"
612 "\tconsumeCpu1(200000);\n"
613 "}\n"
614 "\\&\n"
615 "void\n"
616 "consumeCpu2(int lim)\n"
617 "{\n"
618 " for (unsigned int j = 0; j E<lt> lim; j++)\n"
619 "\tgetppid();\n"
620 "}\n"
621 "\\&\n"
622 "void\n"
623 "x2(void)\n"
624 "{\n"
625 " for (unsigned int j = 0; j E<lt> 1000; j++)\n"
626 "\tconsumeCpu2(10000);\n"
627 "}\n"
628 msgstr ""
629
630 #. type: Plain text
631 #: debian-trixie fedora-44 fedora-rawhide
632 #, no-wrap
633 msgid ""
634 "$ B<cc -g -fPIC -shared -Wl,-soname,libdemo.so.1 \\[rs]>\n"
635 " B<-o libdemo.so.1.0.1 libdemo.c>\n"
636 msgstr ""
637
638 #. type: Plain text
639 #: debian-trixie fedora-44 fedora-rawhide
640 #, no-wrap
641 msgid ""
642 "$ B<ln -sf libdemo.so.1.0.1 libdemo.so.1>\n"
643 "$ B<ln -sf libdemo.so.1 libdemo.so>\n"
644 msgstr ""
645
646 #. type: Plain text
647 #: debian-trixie fedora-44 fedora-rawhide
648 #, no-wrap
649 msgid ""
650 "$ B<cc -g -o prog prog.c -L. -ldemo>\n"
651 "$ B<ldd prog>\n"
652 "\tlinux-vdso.so.1 =E<gt> (0x00007fff86d66000)\n"
653 "\tlibdemo.so.1 =E<gt> not found\n"
654 "\tlibc.so.6 =E<gt> /lib64/libc.so.6 (0x00007fd4dc138000)\n"
655 "\t/lib64/ld-linux-x86-64.so.2 (0x00007fd4dc51f000)\n"
656 msgstr ""
657
658 #. type: Plain text
659 #: debian-trixie fedora-44 fedora-rawhide
660 #, no-wrap
661 msgid "$ B<export LD_PROFILE=libdemo.so.1>\n"
662 msgstr ""
663
664 #. type: Plain text
665 #: debian-trixie fedora-44 fedora-rawhide
666 #, no-wrap
667 msgid ""
668 "$ B<export LD_PROFILE_OUTPUT=$(pwd)/prof_data>\n"
669 "$ B<mkdir -p $LD_PROFILE_OUTPUT>\n"
670 msgstr ""
671
672 #. type: Plain text
673 #: debian-trixie fedora-44 fedora-rawhide
674 #, no-wrap
675 msgid "$ B<rm -f $LD_PROFILE_OUTPUT/$LD_PROFILE.profile>\n"
676 msgstr ""
677
678 #. type: Plain text
679 #: debian-trixie fedora-44 fedora-rawhide
680 #, no-wrap
681 msgid ""
682 "$ B<LD_LIBRARY_PATH=. ./prog>\n"
683 "$ B<ls prof_data>\n"
684 "libdemo.so.1.profile\n"
685 msgstr ""
686
687 #. type: Plain text
688 #: debian-trixie fedora-44 fedora-rawhide
689 #, no-wrap
690 msgid ""
691 "$ B<sprof -p libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n"
692 "Flat profile:\n"
693 "\\&\n"
694 "Each sample counts as 0.01 seconds.\n"
695 " % cumulative self self total\n"
696 " time seconds seconds calls us/call us/call name\n"
697 " 60.00 0.06 0.06 100 600.00 consumeCpu1\n"
698 " 40.00 0.10 0.04 1000 40.00 consumeCpu2\n"
699 " 0.00 0.10 0.00 1 0.00 x1\n"
700 " 0.00 0.10 0.00 1 0.00 x2\n"
701 msgstr ""
702
703 #. type: Plain text
704 #: debian-trixie fedora-44 fedora-rawhide
705 #, no-wrap
706 msgid ""
707 "$ B<sprof -q libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n"
708 "\\&\n"
709 "index % time self children called name\n"
710 "\\&\n"
711 " 0.00 0.00 100/100 x1 [1]\n"
712 "[0] 100.0 0.00 0.00 100 consumeCpu1 [0]\n"
713 "-----------------------------------------------\n"
714 " 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n"
715 "[1] 0.0 0.00 0.00 1 x1 [1]\n"
716 " 0.00 0.00 100/100 consumeCpu1 [0]\n"
717 "-----------------------------------------------\n"
718 " 0.00 0.00 1000/1000 x2 [3]\n"
719 "[2] 0.0 0.00 0.00 1000 consumeCpu2 [2]\n"
720 "-----------------------------------------------\n"
721 " 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n"
722 "[3] 0.0 0.00 0.00 1 x2 [3]\n"
723 " 0.00 0.00 1000/1000 consumeCpu2 [2]\n"
724 "-----------------------------------------------\n"
725 msgstr ""
726
727 #. type: Plain text
728 #: debian-trixie fedora-44 fedora-rawhide
729 #, no-wrap
730 msgid ""
731 "$ B<sprof -c libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n"
732 "E<lt>UNKNOWNE<gt> x1 1\n"
733 "x1 consumeCpu1 100\n"
734 "E<lt>UNKNOWNE<gt> x2 1\n"
735 "x2 consumeCpu2 1000\n"
736 msgstr ""
737
738 #. type: TH
739 #: fedora-44 fedora-rawhide
740 #, no-wrap
741 msgid "2024-11-25"
742 msgstr ""
743
744 #. type: TH
745 #: fedora-44 fedora-rawhide
746 #, no-wrap
747 msgid "Linux man-pages 6.13"
748 msgstr ""
749
750 #. type: TH
751 #: mageia-cauldron
752 #, no-wrap
753 msgid "Linux man-pages 6.17"
754 msgstr ""
755
756 #. type: TH
757 #: opensuse-leap-16-1 opensuse-tumbleweed
758 #, no-wrap
759 msgid "Linux man-pages (unreleased)"
760 msgstr ""