Debian Codegraph @

po/da/man1/sprof.1.po

raw
1 # Danish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Joe Hansen <[email protected]>, 2024, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.22.0\n"
8 "POT-Creation-Date: 2026-06-05 06:44+0200\n"
9 "PO-Revision-Date: 2026-02-16 09:21+0200\n"
10 "Last-Translator: Joe Hansen <[email protected]>\n"
11 "Language-Team: Danish <[email protected]>\n"
12 "Language: da\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
18 #. #-#-#-#-# archlinux: sprof.1.pot (PACKAGE VERSION) #-#-#-#-#
19 #. type: SY
20 #. #-#-#-#-# debian-trixie: sprof.1.pot (PACKAGE VERSION) #-#-#-#-#
21 #. type: TH
22 #. #-#-#-#-# debian-unstable: sprof.1.pot (PACKAGE VERSION) #-#-#-#-#
23 #. type: SY
24 #. #-#-#-#-# fedora-44: sprof.1.pot (PACKAGE VERSION) #-#-#-#-#
25 #. type: SY
26 #. #-#-#-#-# fedora-rawhide: sprof.1.pot (PACKAGE VERSION) #-#-#-#-#
27 #. type: SY
28 #. #-#-#-#-# mageia-cauldron: sprof.1.pot (PACKAGE VERSION) #-#-#-#-#
29 #. type: SY
30 #. #-#-#-#-# opensuse-leap-16-1: sprof.1.pot (PACKAGE VERSION) #-#-#-#-#
31 #. type: SY
32 #. #-#-#-#-# opensuse-tumbleweed: sprof.1.pot (PACKAGE VERSION) #-#-#-#-#
33 #. type: SY
34 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
35 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
36 #, no-wrap
37 msgid "sprof"
38 msgstr "sprof"
39
40 #. type: TH
41 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
42 #: opensuse-tumbleweed
43 #, no-wrap
44 msgid "2026-02-08"
45 msgstr "8. februar 2026"
46
47 #. type: TH
48 #: archlinux debian-unstable
49 #, no-wrap
50 msgid "Linux man-pages 6.18"
51 msgstr "Linux man-pages 6.18"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "NAME"
58 msgstr "NAVN"
59
60 #. type: Plain text
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "sprof - read and display shared object profiling data"
64 msgstr "sprof - læs og vis delte objektprofileringsdata"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr "SYNOPSIS"
72
73 #. type: Plain text
74 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
75 #: opensuse-leap-16-1 opensuse-tumbleweed
76 msgid "[I<option>\\ .\\|.\\|.\\&] I<shared-object-path> [I<profile-data-path>]"
77 msgstr "[I<tilvalg>\\ .\\|.\\|.\\&] I<delt-objekt-sti> [I<profil-data-sti>]"
78
79 #. type: SH
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "DESCRIPTION"
84 msgstr "BESKRIVELSE"
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 msgid ""
90 "The B<sprof> command displays a profiling summary for the shared object "
91 "(shared library) specified as its first command-line argument. The "
92 "profiling summary is created using previously generated profiling data in "
93 "the (optional) second command-line argument. If the profiling data pathname "
94 "is omitted, then B<sprof> will attempt to deduce it using the soname of the "
95 "shared object, looking for a file with the name I<E<lt>sonameE<gt>.profile> "
96 "in the current directory."
97 msgstr ""
98 "Kommandoen B<sprof> viser en profileringsoversigt for det delte objekt (delt "
99 "bibliotek) angivet som dets første kommandolinjeargument. "
100 "Profileringsoversigten oprettes via tidligere oprettede profileringsdata i "
101 "det (valgfrie) andet kommandolinjeargument. Hvis profileringsdatastinavnet "
102 "udelades, så vil B<sprof> forsøge at udlede denne via soname for det delte "
103 "objekt, kiggende efter en fil med navnet I<E<lt>sonameE<gt>.profile> i den "
104 "nuværende mappe."
105
106 #. type: SH
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, no-wrap
110 msgid "OPTIONS"
111 msgstr "TILVALG"
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 msgid ""
117 "The following command-line options specify the profile output to be produced:"
118 msgstr "De følgende kommandolinjetilvalg angiver profilresultatet:"
119
120 #. type: TP
121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
123 #, no-wrap
124 msgid "B<--call-pairs>"
125 msgstr "B<--call-pairs>"
126
127 #. type: TQ
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 #, no-wrap
131 msgid "B<-c>"
132 msgstr "B<-c>"
133
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 msgid ""
138 "Print a list of pairs of call paths for the interfaces exported by the "
139 "shared object, along with the number of times each path is used."
140 msgstr ""
141 "Vis en liste af par for kaldstier for grænsefladerne eksporteret af det "
142 "delte objekt, sammen med antallet af gange hver sti anvendes."
143
144 #. type: TP
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 #, no-wrap
148 msgid "B<--flat-profile>"
149 msgstr "B<--flat-profile>"
150
151 #. type: TQ
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 #, no-wrap
155 msgid "B<-p>"
156 msgstr "B<-p>"
157
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 msgid ""
162 "Generate a flat profile of all of the functions in the monitored object, "
163 "with counts and ticks."
164 msgstr ""
165 "Opret en flad profil for alle funktonerne i det overvågede objekt, med antal "
166 "og krydser."
167
168 #. type: TP
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, no-wrap
172 msgid "B<--graph>"
173 msgstr "B<--graph>"
174
175 #. type: TQ
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 #, no-wrap
179 msgid "B<-q>"
180 msgstr "B<-q>"
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 msgid "Generate a call graph."
186 msgstr "Opret en kaldgraf."
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid ""
192 "If none of the above options is specified, then the default behavior is to "
193 "display a flat profile and a call graph."
194 msgstr ""
195 "Hvis ingen af de ovenstående tilvalg er angivet, så er standardopførelsen at "
196 "vise en flad profil og en kaldgraf."
197
198 #. type: Plain text
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 msgid "The following additional command-line options are available:"
202 msgstr "De følgende yderligere tilvalg for kommandolinjen er tilgængelige:"
203
204 #. type: TP
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 #, no-wrap
208 msgid "B<--help>"
209 msgstr "B<--help>"
210
211 #. type: TQ
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 #, no-wrap
215 msgid "B<-?>"
216 msgstr "B<-?>"
217
218 #. type: Plain text
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 msgid "Display a summary of command-line options and arguments and exit."
222 msgstr ""
223 "Vis en summering af tilvalg for kommandolinjen samt argumenter og afslut."
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<--usage>"
230 msgstr "B<--usage>"
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid "Display a short usage message and exit."
236 msgstr "Vis en kort hjælpetekst og afslut."
237
238 #. type: TP
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, no-wrap
242 msgid "B<--version>"
243 msgstr "B<--version>"
244
245 #. type: TQ
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 #, no-wrap
249 msgid "B<-V>"
250 msgstr "B<-V>"
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 "Display the program version and exit."
256 msgstr "Vis programversionen og afslut."
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 "STANDARDS"
263 msgstr "STANDARDER"
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 "GNU."
269 msgstr "GNU."
270
271 #. type: SH
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 #, no-wrap
275 msgid "EXAMPLES"
276 msgstr "EKSEMPLER"
277
278 #. type: Plain text
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 msgid ""
282 "The following example demonstrates the use of B<sprof>. The example "
283 "consists of a main program that calls two functions in a shared object. "
284 "First, the code of the main program:"
285 msgstr ""
286 "Det følgende eksempel viser brugen af B<sprof>. Eksemplet består af et "
287 "hovedprogram, der kalder to funktioner i et delt objekt. Først koden for "
288 "hovedprogrammet:"
289
290 #. type: Plain text
291 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
292 #: opensuse-tumbleweed
293 #, no-wrap
294 msgid ""
295 "$B< cat prog.c>;\n"
296 "#include E<lt>stdlib.hE<gt>\n"
297 "\\&\n"
298 "void x1(void);\n"
299 "void x2(void);\n"
300 "\\&\n"
301 "int\n"
302 "main(int argc, char *argv[])\n"
303 "{\n"
304 " x1();\n"
305 " x2();\n"
306 " exit(EXIT_SUCCESS);\n"
307 "}\n"
308 msgstr ""
309 "$B< cat prog.c>;\n"
310 "#include E<lt>stdlib.hE<gt>\n"
311 "\\&\n"
312 "void x1(void);\n"
313 "void x2(void);\n"
314 "\\&\n"
315 "int\n"
316 "main(int argc, char *argv[])\n"
317 "{\n"
318 " x1();\n"
319 " x2();\n"
320 " exit(EXIT_SUCCESS);\n"
321 "}\n"
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 msgid ""
327 "The functions I<x1>() and I<x2>() are defined in the following source file "
328 "that is used to construct the shared object:"
329 msgstr ""
330 "Funktionerne I<x1>() og I<x2>() er defineret i den følgende kildefil, der "
331 "bruges til at konstruere det delte objekt:"
332
333 #. type: Plain text
334 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
335 #: opensuse-tumbleweed
336 #, no-wrap
337 msgid ""
338 "$B< cat libdemo.c>;\n"
339 "#include E<lt>unistd.hE<gt>\n"
340 "\\&\n"
341 "void\n"
342 "consumeCpu1(int lim)\n"
343 "{\n"
344 " for (unsigned int j = 0; j E<lt> lim; j++)\n"
345 "\tgetppid();\n"
346 "}\n"
347 "\\&\n"
348 "void\n"
349 "x1(void) {\n"
350 " for (unsigned int j = 0; j E<lt> 100; j++)\n"
351 "\tconsumeCpu1(200000);\n"
352 "}\n"
353 "\\&\n"
354 "void\n"
355 "consumeCpu2(int lim)\n"
356 "{\n"
357 " for (unsigned int j = 0; j E<lt> lim; j++)\n"
358 "\tgetppid();\n"
359 "}\n"
360 "\\&\n"
361 "void\n"
362 "x2(void)\n"
363 "{\n"
364 " for (unsigned int j = 0; j E<lt> 1000; j++)\n"
365 "\tconsumeCpu2(10000);\n"
366 "}\n"
367 msgstr ""
368 "$B< cat libdemo.c>;\n"
369 "#include E<lt>unistd.hE<gt>\n"
370 "\\&\n"
371 "void\n"
372 "consumeCpu1(int lim)\n"
373 "{\n"
374 " for (unsigned int j = 0; j E<lt> lim; j++)\n"
375 "\tgetppid();\n"
376 "}\n"
377 "\\&\n"
378 "void\n"
379 "x1(void) {\n"
380 " for (unsigned int j = 0; j E<lt> 100; j++)\n"
381 "\tconsumeCpu1(200000);\n"
382 "}\n"
383 "\\&\n"
384 "void\n"
385 "consumeCpu2(int lim)\n"
386 "{\n"
387 " for (unsigned int j = 0; j E<lt> lim; j++)\n"
388 "\tgetppid();\n"
389 "}\n"
390 "\\&\n"
391 "void\n"
392 "x2(void)\n"
393 "{\n"
394 " for (unsigned int j = 0; j E<lt> 1000; j++)\n"
395 "\tconsumeCpu2(10000);\n"
396 "}\n"
397
398 #. type: Plain text
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 msgid ""
402 "Now we construct the shared object with the real name I<libdemo.so.1.0.1>, "
403 "and the soname I<libdemo.so.1>:"
404 msgstr ""
405 "Nu konstruerer vi det delte objekt med det reelle navn I<libdemo.so.1.0.1> "
406 "og soname I<libdemo.so.1>:"
407
408 #. type: Plain text
409 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
410 #: opensuse-tumbleweed
411 #, no-wrap
412 msgid ""
413 "$B< cc -g -fPIC -shared -Wl,-soname,libdemo.so.1 \\[rs]>\n"
414 "B< -o libdemo.so.1.0.1 libdemo.c>;\n"
415 msgstr ""
416 "$B< cc -g -fPIC -shared -Wl,-soname,libdemo.so.1 \\[rs]>\n"
417 "B< -o libdemo.so.1.0.1 libdemo.c>;\n"
418
419 #. type: Plain text
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 msgid ""
423 "Then we construct symbolic links for the library soname and the library "
424 "linker name:"
425 msgstr ""
426 "Så konstruerer vi symbolske henvisninger for biblioteket soname og "
427 "henvisingsnavnet for biblioteket:"
428
429 #. type: Plain text
430 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
431 #: opensuse-tumbleweed
432 #, no-wrap
433 msgid ""
434 "$B< ln -sf libdemo.so.1.0.1 libdemo.so.1>;\n"
435 "$B< ln -sf libdemo.so.1 libdemo.so>;\n"
436 msgstr ""
437 "$B< ln -sf libdemo.so.1.0.1 libdemo.so.1>;\n"
438 "$B< ln -sf libdemo.so.1 libdemo.so>;\n"
439
440 #. type: Plain text
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 msgid ""
444 "Next, we compile the main program, linking it against the shared object, and "
445 "then list the dynamic dependencies of the program:"
446 msgstr ""
447 "Efterfølgende kompilerer vi hovedprogrammet, henviser det til det delte "
448 "objekt og viser de dynamiske afhængigheder for programmet:"
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< cc -g -o prog prog.c -L.\\& -ldemo>;\n"
456 "$B< ldd prog>;\n"
457 "\tlinux-vdso.so.1 =E<gt> (0x00007fff86d66000)\n"
458 "\tlibdemo.so.1 =E<gt> not found\n"
459 "\tlibc.so.6 =E<gt> /lib64/libc.so.6 (0x00007fd4dc138000)\n"
460 "\t/lib64/ld-linux-x86-64.so.2 (0x00007fd4dc51f000)\n"
461 msgstr ""
462 "$B< cc -g -o prog prog.c -L.\\& -ldemo>;\n"
463 "$B< ldd prog>;\n"
464 "\tlinux-vdso.so.1 =E<gt> (0x00007fff86d66000)\n"
465 "\tlibdemo.so.1 =E<gt> not found\n"
466 "\tlibc.so.6 =E<gt> /lib64/libc.so.6 (0x00007fd4dc138000)\n"
467 "\t/lib64/ld-linux-x86-64.so.2 (0x00007fd4dc51f000)\n"
468
469 #. type: Plain text
470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
472 msgid ""
473 "In order to get profiling information for the shared object, we define the "
474 "environment variable B<LD_PROFILE> with the soname of the library:"
475 msgstr ""
476 "For at indhente profileringsinformation for det delte objekt definerer vi "
477 "miljøvariablen B<LD_PROFILE> med soname for biblioteket:"
478
479 #. type: Plain text
480 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
481 #: opensuse-tumbleweed
482 #, no-wrap
483 msgid "$B< export LD_PROFILE=libdemo.so.1>;\n"
484 msgstr "$B< export LD_PROFILE=libdemo.so.1>;\n"
485
486 #. type: Plain text
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 msgid ""
490 "We then define the environment variable B<LD_PROFILE_OUTPUT> with the "
491 "pathname of the directory where profile output should be written, and create "
492 "that directory if it does not exist already:"
493 msgstr ""
494 "Så definerer vi miljøvariablen B<LD_PROFILE_OUTPUT> med stinavnet for "
495 "mappen, hvor profilresultatet skal skrives, og opretter den mappe, hvis den "
496 "ikke allerede findes:"
497
498 #. type: Plain text
499 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
500 #: opensuse-tumbleweed
501 #, no-wrap
502 msgid ""
503 "$B< export LD_PROFILE_OUTPUT=$(pwd)/prof_data>;\n"
504 "$B< mkdir -p $LD_PROFILE_OUTPUT>;\n"
505 msgstr ""
506 "$B< export LD_PROFILE_OUTPUT=$(pwd)/prof_data>;\n"
507 "$B< mkdir -p $LD_PROFILE_OUTPUT>;\n"
508
509 #. type: Plain text
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 msgid ""
513 "B<LD_PROFILE> causes profiling output to be I<appended> to the output file "
514 "if it already exists, so we ensure that there is no preexisting profiling "
515 "data:"
516 msgstr ""
517 "B<LD_PROFILE> gør at profileringsresultatet I<tilføjes> til resultatfilen, "
518 "hvis den allerede findes, så vi sikrer, at der ikke er allerede er "
519 "præprofileringsdata:"
520
521 #. type: Plain text
522 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
523 #: opensuse-tumbleweed
524 #, no-wrap
525 msgid "$B< rm -f $LD_PROFILE_OUTPUT/$LD_PROFILE.profile>;\n"
526 msgstr "$B< rm -f $LD_PROFILE_OUTPUT/$LD_PROFILE.profile>;\n"
527
528 #. type: Plain text
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 msgid ""
532 "We then run the program to produce the profiling output, which is written to "
533 "a file in the directory specified in B<LD_PROFILE_OUTPUT>:"
534 msgstr ""
535 "Så afvikler vi programmet for at lave profileringsresultatet, der skrives "
536 "til en fil i mappen angivet i B<LD_PROFILE_OUTPUT>:"
537
538 #. type: Plain text
539 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
540 #: opensuse-tumbleweed
541 #, no-wrap
542 msgid ""
543 "$B< LD_LIBRARY_PATH=.\\& ./prog>;\n"
544 "$B< ls prof_data>;\n"
545 "libdemo.so.1.profile\n"
546 msgstr ""
547 "$B< LD_LIBRARY_PATH=.\\& ./prog>;\n"
548 "$B< ls prof_data>;\n"
549 "libdemo.so.1.profile\n"
550
551 #. type: Plain text
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 msgid ""
555 "We then use the B<sprof -p> option to generate a flat profile with counts "
556 "and ticks:"
557 msgstr ""
558 "Vi bruger så tilvalget B<sprof -p> til at oprette en flad profil med antal "
559 "og krydser:"
560
561 # FIXME Inconsistency detected by ld.so: dl-open.c: 930: _dl_open: Assertion `_dl_debug_update (args.nsid)->r_state == RT_CONSISTENT' failed!
562 # Note: Once fixed/clarified, recheck the output of the following commands for translations (if any) (Debian-bookworm appears to not i18ned)
563 #. type: Plain text
564 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
565 #: opensuse-tumbleweed
566 #, no-wrap
567 msgid ""
568 "$B< sprof -p libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>;\n"
569 "Flat profile:\n"
570 "\\&\n"
571 "Each sample counts as 0.01 seconds.\n"
572 " % cumulative self self total\n"
573 " time seconds seconds calls us/call us/call name\n"
574 " 60.00 0.06 0.06 100 600.00 consumeCpu1\n"
575 " 40.00 0.10 0.04 1000 40.00 consumeCpu2\n"
576 " 0.00 0.10 0.00 1 0.00 x1\n"
577 " 0.00 0.10 0.00 1 0.00 x2\n"
578 msgstr ""
579 "$B< sprof -p libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>;\n"
580 "Flat profile:\n"
581 "\\&\n"
582 "Each sample counts as 0.01 seconds.\n"
583 " % cumulative self self total\n"
584 " time seconds seconds calls us/call us/call name\n"
585 " 60.00 0.06 0.06 100 600.00 consumeCpu1\n"
586 " 40.00 0.10 0.04 1000 40.00 consumeCpu2\n"
587 " 0.00 0.10 0.00 1 0.00 x1\n"
588 " 0.00 0.10 0.00 1 0.00 x2\n"
589
590 #. type: Plain text
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 msgid "The B<sprof -q> option generates a call graph:"
594 msgstr "Tilvalget B<sprof -q> opretter en kaldgraf:"
595
596 #. type: Plain text
597 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
598 #: opensuse-tumbleweed
599 #, no-wrap
600 msgid ""
601 "$B< sprof -q libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>;\n"
602 "\\&\n"
603 "index % time self children called name\n"
604 "\\&\n"
605 " 0.00 0.00 100/100 x1 [1]\n"
606 "[0] 100.0 0.00 0.00 100 consumeCpu1 [0]\n"
607 "-----------------------------------------------\n"
608 " 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n"
609 "[1] 0.0 0.00 0.00 1 x1 [1]\n"
610 " 0.00 0.00 100/100 consumeCpu1 [0]\n"
611 "-----------------------------------------------\n"
612 " 0.00 0.00 1000/1000 x2 [3]\n"
613 "[2] 0.0 0.00 0.00 1000 consumeCpu2 [2]\n"
614 "-----------------------------------------------\n"
615 " 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n"
616 "[3] 0.0 0.00 0.00 1 x2 [3]\n"
617 " 0.00 0.00 1000/1000 consumeCpu2 [2]\n"
618 "-----------------------------------------------\n"
619 msgstr ""
620 "$B< sprof -q libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>;\n"
621 "\\&\n"
622 "index % time self children called name\n"
623 "\\&\n"
624 " 0.00 0.00 100/100 x1 [1]\n"
625 "[0] 100.0 0.00 0.00 100 consumeCpu1 [0]\n"
626 "-----------------------------------------------\n"
627 " 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n"
628 "[1] 0.0 0.00 0.00 1 x1 [1]\n"
629 " 0.00 0.00 100/100 consumeCpu1 [0]\n"
630 "-----------------------------------------------\n"
631 " 0.00 0.00 1000/1000 x2 [3]\n"
632 "[2] 0.0 0.00 0.00 1000 consumeCpu2 [2]\n"
633 "-----------------------------------------------\n"
634 " 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n"
635 "[3] 0.0 0.00 0.00 1 x2 [3]\n"
636 " 0.00 0.00 1000/1000 consumeCpu2 [2]\n"
637 "-----------------------------------------------\n"
638
639 #. type: Plain text
640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
642 msgid ""
643 "Above and below, the \"E<lt>UNKNOWNE<gt>\" strings represent identifiers "
644 "that are outside of the profiled object (in this example, these are "
645 "instances of I<main()>)."
646 msgstr ""
647 "Over og under, strengene »E<lt>UNKNOWNE<gt>« repræsenterer identifikatorer, "
648 "der er uden for det profilerede objekt (i dette eksempel er disse instanser "
649 "af I<main()>)."
650
651 #. type: Plain text
652 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
653 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
654 msgid ""
655 "The B<sprof -c> option generates a list of call pairs and the number of "
656 "their occurrences:"
657 msgstr ""
658 "Tilvalget B<sprof -c> opretter en list af kaldpar og antallet af deres "
659 "forekomster:"
660
661 #. type: Plain text
662 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
663 #: opensuse-tumbleweed
664 #, no-wrap
665 msgid ""
666 "$B< sprof -c libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>;\n"
667 "E<lt>UNKNOWNE<gt> x1 1\n"
668 "x1 consumeCpu1 100\n"
669 "E<lt>UNKNOWNE<gt> x2 1\n"
670 "x2 consumeCpu2 1000\n"
671 msgstr ""
672 "$B< sprof -c libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>;\n"
673 "E<lt>UNKNOWNE<gt> x1 1\n"
674 "x1 consumeCpu1 100\n"
675 "E<lt>UNKNOWNE<gt> x2 1\n"
676 "x2 consumeCpu2 1000\n"
677
678 #. type: SH
679 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
680 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
681 #, no-wrap
682 msgid "SEE ALSO"
683 msgstr "SE OGSÅ"
684
685 #. type: Plain text
686 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
687 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
688 msgid "B<gprof>(1), B<ldd>(1), B<ld.so>(8)"
689 msgstr "B<gprof>(1), B<ldd>(1), B<ld.so>(8)"
690
691 #. type: TH
692 #: debian-trixie
693 #, no-wrap
694 msgid "2024-06-15"
695 msgstr "15. juni 2024"
696
697 #. type: TH
698 #: debian-trixie
699 #, no-wrap
700 msgid "Linux man-pages 6.9.1"
701 msgstr "Linux man-pages 6.9.1"
702
703 #. type: Plain text
704 #: debian-trixie
705 #, no-wrap
706 msgid "B<sprof> [I<option>]... I<shared-object-path> [I<profile-data-path>]\n"
707 msgstr "B<sprof> [I<tilvalg>]... I<delt-objekt-sti> [I<profil-data-sti>]\n"
708
709 #. type: Plain text
710 #: debian-trixie fedora-44 fedora-rawhide
711 #, no-wrap
712 msgid ""
713 "$ B<cat prog.c>\n"
714 "#include E<lt>stdlib.hE<gt>\n"
715 "\\&\n"
716 "void x1(void);\n"
717 "void x2(void);\n"
718 "\\&\n"
719 "int\n"
720 "main(int argc, char *argv[])\n"
721 "{\n"
722 " x1();\n"
723 " x2();\n"
724 " exit(EXIT_SUCCESS);\n"
725 "}\n"
726 msgstr ""
727 "$ B<cat prog.c>\n"
728 "#include E<lt>stdlib.hE<gt>\n"
729 "\\&\n"
730 "void x1(void);\n"
731 "void x2(void);\n"
732 "\\&\n"
733 "int\n"
734 "main(int argc, char *argv[])\n"
735 "{\n"
736 " x1();\n"
737 " x2();\n"
738 " exit(EXIT_SUCCESS);\n"
739 "}\n"
740
741 #. type: Plain text
742 #: debian-trixie fedora-44 fedora-rawhide
743 #, no-wrap
744 msgid ""
745 "$ B<cat libdemo.c>\n"
746 "#include E<lt>unistd.hE<gt>\n"
747 "\\&\n"
748 "void\n"
749 "consumeCpu1(int lim)\n"
750 "{\n"
751 " for (unsigned int j = 0; j E<lt> lim; j++)\n"
752 "\tgetppid();\n"
753 "}\n"
754 "\\&\n"
755 "void\n"
756 "x1(void) {\n"
757 " for (unsigned int j = 0; j E<lt> 100; j++)\n"
758 "\tconsumeCpu1(200000);\n"
759 "}\n"
760 "\\&\n"
761 "void\n"
762 "consumeCpu2(int lim)\n"
763 "{\n"
764 " for (unsigned int j = 0; j E<lt> lim; j++)\n"
765 "\tgetppid();\n"
766 "}\n"
767 "\\&\n"
768 "void\n"
769 "x2(void)\n"
770 "{\n"
771 " for (unsigned int j = 0; j E<lt> 1000; j++)\n"
772 "\tconsumeCpu2(10000);\n"
773 "}\n"
774 msgstr ""
775 "$ B<cat libdemo.c>\n"
776 "#include E<lt>unistd.hE<gt>\n"
777 "\\&\n"
778 "void\n"
779 "consumeCpu1(int lim)\n"
780 "{\n"
781 " for (unsigned int j = 0; j E<lt> lim; j++)\n"
782 "\tgetppid();\n"
783 "}\n"
784 "\\&\n"
785 "void\n"
786 "x1(void) {\n"
787 " for (unsigned int j = 0; j E<lt> 100; j++)\n"
788 "\tconsumeCpu1(200000);\n"
789 "}\n"
790 "\\&\n"
791 "void\n"
792 "consumeCpu2(int lim)\n"
793 "{\n"
794 " for (unsigned int j = 0; j E<lt> lim; j++)\n"
795 "\tgetppid();\n"
796 "}\n"
797 "\\&\n"
798 "void\n"
799 "x2(void)\n"
800 "{\n"
801 " for (unsigned int j = 0; j E<lt> 1000; j++)\n"
802 "\tconsumeCpu2(10000);\n"
803 "}\n"
804
805 #. type: Plain text
806 #: debian-trixie fedora-44 fedora-rawhide
807 #, no-wrap
808 msgid ""
809 "$ B<cc -g -fPIC -shared -Wl,-soname,libdemo.so.1 \\[rs]>\n"
810 " B<-o libdemo.so.1.0.1 libdemo.c>\n"
811 msgstr ""
812 "$ B<cc -g -fPIC -shared -Wl,-soname,libdemo.so.1 \\[rs]>\n"
813 " B<-o libdemo.so.1.0.1 libdemo.c>\n"
814
815 #. type: Plain text
816 #: debian-trixie fedora-44 fedora-rawhide
817 #, no-wrap
818 msgid ""
819 "$ B<ln -sf libdemo.so.1.0.1 libdemo.so.1>\n"
820 "$ B<ln -sf libdemo.so.1 libdemo.so>\n"
821 msgstr ""
822 "$ B<ln -sf libdemo.so.1.0.1 libdemo.so.1>\n"
823 "$ B<ln -sf libdemo.so.1 libdemo.so>\n"
824
825 #. type: Plain text
826 #: debian-trixie fedora-44 fedora-rawhide
827 #, no-wrap
828 msgid ""
829 "$ B<cc -g -o prog prog.c -L. -ldemo>\n"
830 "$ B<ldd prog>\n"
831 "\tlinux-vdso.so.1 =E<gt> (0x00007fff86d66000)\n"
832 "\tlibdemo.so.1 =E<gt> not found\n"
833 "\tlibc.so.6 =E<gt> /lib64/libc.so.6 (0x00007fd4dc138000)\n"
834 "\t/lib64/ld-linux-x86-64.so.2 (0x00007fd4dc51f000)\n"
835 msgstr ""
836 "$ B<cc -g -o prog prog.c -L. -ldemo>\n"
837 "$ B<ldd prog>\n"
838 "\tlinux-vdso.so.1 =E<gt> (0x00007fff86d66000)\n"
839 "\tlibdemo.so.1 =E<gt> not found\n"
840 "\tlibc.so.6 =E<gt> /lib64/libc.so.6 (0x00007fd4dc138000)\n"
841 "\t/lib64/ld-linux-x86-64.so.2 (0x00007fd4dc51f000)\n"
842
843 #. type: Plain text
844 #: debian-trixie fedora-44 fedora-rawhide
845 #, no-wrap
846 msgid "$ B<export LD_PROFILE=libdemo.so.1>\n"
847 msgstr "$ B<export LD_PROFILE=libdemo.so.1>\n"
848
849 #. type: Plain text
850 #: debian-trixie fedora-44 fedora-rawhide
851 #, no-wrap
852 msgid ""
853 "$ B<export LD_PROFILE_OUTPUT=$(pwd)/prof_data>\n"
854 "$ B<mkdir -p $LD_PROFILE_OUTPUT>\n"
855 msgstr ""
856 "$ B<export LD_PROFILE_OUTPUT=$(pwd)/prof_data>\n"
857 "$ B<mkdir -p $LD_PROFILE_OUTPUT>\n"
858
859 #. type: Plain text
860 #: debian-trixie fedora-44 fedora-rawhide
861 #, no-wrap
862 msgid "$ B<rm -f $LD_PROFILE_OUTPUT/$LD_PROFILE.profile>\n"
863 msgstr "$ B<rm -f $LD_PROFILE_OUTPUT/$LD_PROFILE.profile>\n"
864
865 #. type: Plain text
866 #: debian-trixie fedora-44 fedora-rawhide
867 #, no-wrap
868 msgid ""
869 "$ B<LD_LIBRARY_PATH=. ./prog>\n"
870 "$ B<ls prof_data>\n"
871 "libdemo.so.1.profile\n"
872 msgstr ""
873 "$ B<LD_LIBRARY_PATH=. ./prog>\n"
874 "$ B<ls prof_data>\n"
875 "libdemo.so.1.profile\n"
876
877 # FIXME Inconsistency detected by ld.so: dl-open.c: 930: _dl_open: Assertion `_dl_debug_update (args.nsid)->r_state == RT_CONSISTENT' failed!
878 # Note: Once fixed/clarified, recheck the output of the following commands for translations (if any) (Debian-bookworm appears to not i18ned)
879 #. type: Plain text
880 #: debian-trixie fedora-44 fedora-rawhide
881 #, no-wrap
882 msgid ""
883 "$ B<sprof -p libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n"
884 "Flat profile:\n"
885 "\\&\n"
886 "Each sample counts as 0.01 seconds.\n"
887 " % cumulative self self total\n"
888 " time seconds seconds calls us/call us/call name\n"
889 " 60.00 0.06 0.06 100 600.00 consumeCpu1\n"
890 " 40.00 0.10 0.04 1000 40.00 consumeCpu2\n"
891 " 0.00 0.10 0.00 1 0.00 x1\n"
892 " 0.00 0.10 0.00 1 0.00 x2\n"
893 msgstr ""
894 "$ B<sprof -p libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n"
895 "Flat profile:\n"
896 "\\&\n"
897 "Each sample counts as 0.01 seconds.\n"
898 " % cumulative self self total\n"
899 " time seconds seconds calls us/call us/call name\n"
900 " 60.00 0.06 0.06 100 600.00 consumeCpu1\n"
901 " 40.00 0.10 0.04 1000 40.00 consumeCpu2\n"
902 " 0.00 0.10 0.00 1 0.00 x1\n"
903 " 0.00 0.10 0.00 1 0.00 x2\n"
904
905 #. type: Plain text
906 #: debian-trixie fedora-44 fedora-rawhide
907 #, no-wrap
908 msgid ""
909 "$ B<sprof -q libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n"
910 "\\&\n"
911 "index % time self children called name\n"
912 "\\&\n"
913 " 0.00 0.00 100/100 x1 [1]\n"
914 "[0] 100.0 0.00 0.00 100 consumeCpu1 [0]\n"
915 "-----------------------------------------------\n"
916 " 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n"
917 "[1] 0.0 0.00 0.00 1 x1 [1]\n"
918 " 0.00 0.00 100/100 consumeCpu1 [0]\n"
919 "-----------------------------------------------\n"
920 " 0.00 0.00 1000/1000 x2 [3]\n"
921 "[2] 0.0 0.00 0.00 1000 consumeCpu2 [2]\n"
922 "-----------------------------------------------\n"
923 " 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n"
924 "[3] 0.0 0.00 0.00 1 x2 [3]\n"
925 " 0.00 0.00 1000/1000 consumeCpu2 [2]\n"
926 "-----------------------------------------------\n"
927 msgstr ""
928 "$ B<sprof -q libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n"
929 "\\&\n"
930 "index % time self children called name\n"
931 "\\&\n"
932 " 0.00 0.00 100/100 x1 [1]\n"
933 "[0] 100.0 0.00 0.00 100 consumeCpu1 [0]\n"
934 "-----------------------------------------------\n"
935 " 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n"
936 "[1] 0.0 0.00 0.00 1 x1 [1]\n"
937 " 0.00 0.00 100/100 consumeCpu1 [0]\n"
938 "-----------------------------------------------\n"
939 " 0.00 0.00 1000/1000 x2 [3]\n"
940 "[2] 0.0 0.00 0.00 1000 consumeCpu2 [2]\n"
941 "-----------------------------------------------\n"
942 " 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n"
943 "[3] 0.0 0.00 0.00 1 x2 [3]\n"
944 " 0.00 0.00 1000/1000 consumeCpu2 [2]\n"
945 "-----------------------------------------------\n"
946
947 #. type: Plain text
948 #: debian-trixie fedora-44 fedora-rawhide
949 #, no-wrap
950 msgid ""
951 "$ B<sprof -c libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n"
952 "E<lt>UNKNOWNE<gt> x1 1\n"
953 "x1 consumeCpu1 100\n"
954 "E<lt>UNKNOWNE<gt> x2 1\n"
955 "x2 consumeCpu2 1000\n"
956 msgstr ""
957 "$ B<sprof -c libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n"
958 "E<lt>UNKNOWNE<gt> x1 1\n"
959 "x1 consumeCpu1 100\n"
960 "E<lt>UNKNOWNE<gt> x2 1\n"
961 "x2 consumeCpu2 1000\n"
962
963 #. type: TH
964 #: fedora-44 fedora-rawhide
965 #, no-wrap
966 msgid "2024-11-25"
967 msgstr "25. november 2024"
968
969 #. type: TH
970 #: fedora-44 fedora-rawhide
971 #, no-wrap
972 msgid "Linux man-pages 6.13"
973 msgstr "Linux man-pages 6.13"
974
975 #. type: TH
976 #: mageia-cauldron
977 #, no-wrap
978 msgid "Linux man-pages 6.17"
979 msgstr "Linux man-pages 6.17"
980
981 #. type: TH
982 #: opensuse-leap-16-1 opensuse-tumbleweed
983 #, no-wrap
984 msgid "Linux man-pages (unreleased)"
985 msgstr "Linux man-pages (ej udgivet)"