| 1 |
# Russian translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Alexander Golubev <[email protected]>, 2018. |
| 5 |
# Azamat Hackimov <[email protected]>, 2011, 2014-2016. |
| 6 |
# Hotellook, 2014. |
| 7 |
# Nikita <[email protected]>, 2014. |
| 8 |
# Spiros Georgaras <[email protected]>, 2016. |
| 9 |
# Vladislav <[email protected]>, 2015. |
| 10 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 11 |
# Иван Павлов <[email protected]>, 2017. |
| 12 |
msgid "" |
| 13 |
msgstr "" |
| 14 |
"Project-Id-Version: manpages-l10n\n" |
| 15 |
"POT-Creation-Date: 2026-06-05 06:44+0200\n" |
| 16 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 17 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 18 |
"Language-Team: Russian <[email protected]>\n" |
| 19 |
"Language: ru\n" |
| 20 |
"MIME-Version: 1.0\n" |
| 21 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 22 |
"Content-Transfer-Encoding: 8bit\n" |
| 23 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 24 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 25 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 26 |
"X-Generator: Lokalize 2.0\n" |
| 27 |
|
| 28 |
#. #-#-#-#-# archlinux: sprof.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 29 |
#. type: SY |
| 30 |
#. #-#-#-#-# debian-trixie: sprof.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 31 |
#. type: TH |
| 32 |
#. #-#-#-#-# debian-unstable: sprof.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 33 |
#. type: SY |
| 34 |
#. #-#-#-#-# fedora-44: sprof.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 35 |
#. type: SY |
| 36 |
#. #-#-#-#-# fedora-rawhide: sprof.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 37 |
#. type: SY |
| 38 |
#. #-#-#-#-# mageia-cauldron: sprof.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 39 |
#. type: SY |
| 40 |
#. #-#-#-#-# opensuse-leap-16-1: sprof.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 41 |
#. type: SY |
| 42 |
#. #-#-#-#-# opensuse-tumbleweed: sprof.1.pot (PACKAGE VERSION) #-#-#-#-# |
| 43 |
#. type: SY |
| 44 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 45 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 46 |
#, no-wrap |
| 47 |
msgid "sprof" |
| 48 |
msgstr "sprof" |
| 49 |
|
| 50 |
#. type: TH |
| 51 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 52 |
#: opensuse-tumbleweed |
| 53 |
#, no-wrap |
| 54 |
msgid "2026-02-08" |
| 55 |
msgstr "8 февраля 2026 г." |
| 56 |
|
| 57 |
#. type: TH |
| 58 |
#: archlinux debian-unstable |
| 59 |
#, fuzzy, no-wrap |
| 60 |
#| msgid "Linux man-pages 6.17" |
| 61 |
msgid "Linux man-pages 6.18" |
| 62 |
msgstr "Справочные страницы Linux 6.17" |
| 63 |
|
| 64 |
#. type: SH |
| 65 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 66 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 67 |
#, no-wrap |
| 68 |
msgid "NAME" |
| 69 |
msgstr "НАИМЕНОВАНИЕ" |
| 70 |
|
| 71 |
#. type: Plain text |
| 72 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 73 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
msgid "sprof - read and display shared object profiling data" |
| 75 |
msgstr "sprof - читает и показывает общие объекты данных профилирования" |
| 76 |
|
| 77 |
#. type: SH |
| 78 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 79 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 80 |
#, no-wrap |
| 81 |
msgid "SYNOPSIS" |
| 82 |
msgstr "СИНТАКСИС" |
| 83 |
|
| 84 |
#. type: Plain text |
| 85 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 86 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 87 |
#, fuzzy |
| 88 |
#| msgid "" |
| 89 |
#| "B<sprof> [I<option>]... I<shared-object-path> [I<profile-data-path>]\n" |
| 90 |
msgid "[I<option>\\ .\\|.\\|.\\&] I<shared-object-path> [I<profile-data-path>]" |
| 91 |
msgstr "B<sprof> [I<параметр>]… I<shared-object-path> [I<profile-data-path>]\n" |
| 92 |
|
| 93 |
#. type: SH |
| 94 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 95 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
#, no-wrap |
| 97 |
msgid "DESCRIPTION" |
| 98 |
msgstr "ОПИСАНИЕ" |
| 99 |
|
| 100 |
#. type: Plain text |
| 101 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 102 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 103 |
msgid "" |
| 104 |
"The B<sprof> command displays a profiling summary for the shared object " |
| 105 |
"(shared library) specified as its first command-line argument. The " |
| 106 |
"profiling summary is created using previously generated profiling data in " |
| 107 |
"the (optional) second command-line argument. If the profiling data pathname " |
| 108 |
"is omitted, then B<sprof> will attempt to deduce it using the soname of the " |
| 109 |
"shared object, looking for a file with the name I<E<lt>sonameE<gt>.profile> " |
| 110 |
"in the current directory." |
| 111 |
msgstr "" |
| 112 |
"Команда B<sprof> выводит краткий отчёт по профилированию для общего объекта " |
| 113 |
"(общей библиотеки), заданного в первом аргументе командной строки. Краткий " |
| 114 |
"отчёт по профилированию создан с помощью ранее сгенерированных данных " |
| 115 |
"профилирования во втором (необязательном) аргументе командной строки. Если " |
| 116 |
"путь данных профилирования отсутствует, то B<sprof> попытается вычислить его " |
| 117 |
"используя soname общего объекта и поищет файл с именем " |
| 118 |
"I<E<lt>sonameE<gt>.profile> в текущем каталоге." |
| 119 |
|
| 120 |
#. type: SH |
| 121 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 122 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 123 |
#, no-wrap |
| 124 |
msgid "OPTIONS" |
| 125 |
msgstr "ОПЦИИ" |
| 126 |
|
| 127 |
#. type: Plain text |
| 128 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 129 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 130 |
msgid "" |
| 131 |
"The following command-line options specify the profile output to be produced:" |
| 132 |
msgstr "" |
| 133 |
"Следующие параметры командной строки определяют выводимые данные " |
| 134 |
"профилирования:" |
| 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<--call-pairs>" |
| 141 |
msgstr "B<--call-pairs>" |
| 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<-c>" |
| 148 |
msgstr "B<-c>" |
| 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 |
"Print a list of pairs of call paths for the interfaces exported by the " |
| 155 |
"shared object, along with the number of times each path is used." |
| 156 |
msgstr "" |
| 157 |
"Вывести список пар путей вызова для интерфейсов, экспортируемых общим " |
| 158 |
"объектом, а также сколько раз использовался каждый путь." |
| 159 |
|
| 160 |
#. type: TP |
| 161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 162 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 163 |
#, no-wrap |
| 164 |
msgid "B<--flat-profile>" |
| 165 |
msgstr "B<--flat-profile>" |
| 166 |
|
| 167 |
#. type: TQ |
| 168 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 169 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 170 |
#, no-wrap |
| 171 |
msgid "B<-p>" |
| 172 |
msgstr "B<-p>" |
| 173 |
|
| 174 |
#. type: Plain text |
| 175 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 176 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 177 |
msgid "" |
| 178 |
"Generate a flat profile of all of the functions in the monitored object, " |
| 179 |
"with counts and ticks." |
| 180 |
msgstr "" |
| 181 |
"Сгенерировать плоский профиль всех функций в отслеживаемом объекте, а также " |
| 182 |
"количество вызовов и время работы." |
| 183 |
|
| 184 |
#. type: TP |
| 185 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 186 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 187 |
#, no-wrap |
| 188 |
msgid "B<--graph>" |
| 189 |
msgstr "B<--graph>" |
| 190 |
|
| 191 |
#. type: TQ |
| 192 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 193 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 194 |
#, no-wrap |
| 195 |
msgid "B<-q>" |
| 196 |
msgstr "B<-q>" |
| 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 "Generate a call graph." |
| 202 |
msgstr "Сгенерировать граф вызовов." |
| 203 |
|
| 204 |
#. type: Plain text |
| 205 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 206 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 207 |
msgid "" |
| 208 |
"If none of the above options is specified, then the default behavior is to " |
| 209 |
"display a flat profile and a call graph." |
| 210 |
msgstr "" |
| 211 |
"Если ни один из этих параметров не указан, то действием по умолчанию " |
| 212 |
"является вывод плоского профиля и графа вызовов." |
| 213 |
|
| 214 |
#. type: Plain text |
| 215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 216 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 217 |
msgid "The following additional command-line options are available:" |
| 218 |
msgstr "Доступны следующие дополнительные параметры командной строки:" |
| 219 |
|
| 220 |
#. type: TP |
| 221 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 222 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 223 |
#, no-wrap |
| 224 |
msgid "B<--help>" |
| 225 |
msgstr "B<--help>" |
| 226 |
|
| 227 |
#. type: TQ |
| 228 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 229 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 230 |
#, no-wrap |
| 231 |
msgid "B<-?>" |
| 232 |
msgstr "B<-?>" |
| 233 |
|
| 234 |
#. type: Plain text |
| 235 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 236 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 237 |
msgid "Display a summary of command-line options and arguments and exit." |
| 238 |
msgstr "" |
| 239 |
"Показать справку по параметрам командной строки и аргументам и завершить " |
| 240 |
"работу." |
| 241 |
|
| 242 |
#. type: TP |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
#, no-wrap |
| 246 |
msgid "B<--usage>" |
| 247 |
msgstr "B<--usage>" |
| 248 |
|
| 249 |
#. type: Plain text |
| 250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 251 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 252 |
msgid "Display a short usage message and exit." |
| 253 |
msgstr "Показать короткое сообщение об использовании и завершить работу." |
| 254 |
|
| 255 |
#. type: TP |
| 256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 258 |
#, no-wrap |
| 259 |
msgid "B<--version>" |
| 260 |
msgstr "B<--version>" |
| 261 |
|
| 262 |
#. type: TQ |
| 263 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 264 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 265 |
#, no-wrap |
| 266 |
msgid "B<-V>" |
| 267 |
msgstr "B<-V>" |
| 268 |
|
| 269 |
#. type: Plain text |
| 270 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 271 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 272 |
msgid "Display the program version and exit." |
| 273 |
msgstr "Вывести версию программы и выйти." |
| 274 |
|
| 275 |
#. type: SH |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
#, no-wrap |
| 279 |
msgid "STANDARDS" |
| 280 |
msgstr "СТАНДАРТЫ" |
| 281 |
|
| 282 |
#. type: Plain text |
| 283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 285 |
msgid "GNU." |
| 286 |
msgstr "GNU." |
| 287 |
|
| 288 |
#. type: SH |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
#, no-wrap |
| 292 |
msgid "EXAMPLES" |
| 293 |
msgstr "ПРИМЕРЫ" |
| 294 |
|
| 295 |
#. type: Plain text |
| 296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 297 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 298 |
msgid "" |
| 299 |
"The following example demonstrates the use of B<sprof>. The example " |
| 300 |
"consists of a main program that calls two functions in a shared object. " |
| 301 |
"First, the code of the main program:" |
| 302 |
msgstr "" |
| 303 |
"В следующем примере показано использование B<sprof>. Пример состоит из " |
| 304 |
"основной программы, которая вызывает две функции из общего объекта. Вот код " |
| 305 |
"основной программы:" |
| 306 |
|
| 307 |
#. type: Plain text |
| 308 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 309 |
#: opensuse-tumbleweed |
| 310 |
#, fuzzy, no-wrap |
| 311 |
#| msgid "" |
| 312 |
#| "$ B<cat prog.c>\n" |
| 313 |
#| "#include E<lt>stdlib.hE<gt>\n" |
| 314 |
#| "\\&\n" |
| 315 |
#| "void x1(void);\n" |
| 316 |
#| "void x2(void);\n" |
| 317 |
#| "\\&\n" |
| 318 |
#| "int\n" |
| 319 |
#| "main(int argc, char *argv[])\n" |
| 320 |
#| "{\n" |
| 321 |
#| " x1();\n" |
| 322 |
#| " x2();\n" |
| 323 |
#| " exit(EXIT_SUCCESS);\n" |
| 324 |
#| "}\n" |
| 325 |
msgid "" |
| 326 |
"$B< cat prog.c>;\n" |
| 327 |
"#include E<lt>stdlib.hE<gt>\n" |
| 328 |
"\\&\n" |
| 329 |
"void x1(void);\n" |
| 330 |
"void x2(void);\n" |
| 331 |
"\\&\n" |
| 332 |
"int\n" |
| 333 |
"main(int argc, char *argv[])\n" |
| 334 |
"{\n" |
| 335 |
" x1();\n" |
| 336 |
" x2();\n" |
| 337 |
" exit(EXIT_SUCCESS);\n" |
| 338 |
"}\n" |
| 339 |
msgstr "" |
| 340 |
"$ B<cat prog.c>\n" |
| 341 |
"#include E<lt>stdlib.hE<gt>\n" |
| 342 |
"\\&\n" |
| 343 |
"void x1(void);\n" |
| 344 |
"void x2(void);\n" |
| 345 |
"\\&\n" |
| 346 |
"int\n" |
| 347 |
"main(int argc, char *argv[])\n" |
| 348 |
"{\n" |
| 349 |
" x1();\n" |
| 350 |
" x2();\n" |
| 351 |
" exit(EXIT_SUCCESS);\n" |
| 352 |
"}\n" |
| 353 |
|
| 354 |
#. type: Plain text |
| 355 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 356 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 357 |
msgid "" |
| 358 |
"The functions I<x1>() and I<x2>() are defined in the following source file " |
| 359 |
"that is used to construct the shared object:" |
| 360 |
msgstr "" |
| 361 |
"Функции I<x1>() и I<x2>() определены в следующем файле исходного кода, " |
| 362 |
"который используется для сборки общего объекта:" |
| 363 |
|
| 364 |
#. type: Plain text |
| 365 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 366 |
#: opensuse-tumbleweed |
| 367 |
#, fuzzy, no-wrap |
| 368 |
#| msgid "" |
| 369 |
#| "$ B<cat libdemo.c>\n" |
| 370 |
#| "#include E<lt>unistd.hE<gt>\n" |
| 371 |
#| "\\&\n" |
| 372 |
#| "void\n" |
| 373 |
#| "consumeCpu1(int lim)\n" |
| 374 |
#| "{\n" |
| 375 |
#| " for (unsigned int j = 0; j E<lt> lim; j++)\n" |
| 376 |
#| "\tgetppid();\n" |
| 377 |
#| "}\n" |
| 378 |
#| "\\&\n" |
| 379 |
#| "void\n" |
| 380 |
#| "x1(void) {\n" |
| 381 |
#| " for (unsigned int j = 0; j E<lt> 100; j++)\n" |
| 382 |
#| "\tconsumeCpu1(200000);\n" |
| 383 |
#| "}\n" |
| 384 |
#| "\\&\n" |
| 385 |
#| "void\n" |
| 386 |
#| "consumeCpu2(int lim)\n" |
| 387 |
#| "{\n" |
| 388 |
#| " for (unsigned int j = 0; j E<lt> lim; j++)\n" |
| 389 |
#| "\tgetppid();\n" |
| 390 |
#| "}\n" |
| 391 |
#| "\\&\n" |
| 392 |
#| "void\n" |
| 393 |
#| "x2(void)\n" |
| 394 |
#| "{\n" |
| 395 |
#| " for (unsigned int j = 0; j E<lt> 1000; j++)\n" |
| 396 |
#| "\tconsumeCpu2(10000);\n" |
| 397 |
#| "}\n" |
| 398 |
msgid "" |
| 399 |
"$B< cat libdemo.c>;\n" |
| 400 |
"#include E<lt>unistd.hE<gt>\n" |
| 401 |
"\\&\n" |
| 402 |
"void\n" |
| 403 |
"consumeCpu1(int lim)\n" |
| 404 |
"{\n" |
| 405 |
" for (unsigned int j = 0; j E<lt> lim; j++)\n" |
| 406 |
"\tgetppid();\n" |
| 407 |
"}\n" |
| 408 |
"\\&\n" |
| 409 |
"void\n" |
| 410 |
"x1(void) {\n" |
| 411 |
" for (unsigned int j = 0; j E<lt> 100; j++)\n" |
| 412 |
"\tconsumeCpu1(200000);\n" |
| 413 |
"}\n" |
| 414 |
"\\&\n" |
| 415 |
"void\n" |
| 416 |
"consumeCpu2(int lim)\n" |
| 417 |
"{\n" |
| 418 |
" for (unsigned int j = 0; j E<lt> lim; j++)\n" |
| 419 |
"\tgetppid();\n" |
| 420 |
"}\n" |
| 421 |
"\\&\n" |
| 422 |
"void\n" |
| 423 |
"x2(void)\n" |
| 424 |
"{\n" |
| 425 |
" for (unsigned int j = 0; j E<lt> 1000; j++)\n" |
| 426 |
"\tconsumeCpu2(10000);\n" |
| 427 |
"}\n" |
| 428 |
msgstr "" |
| 429 |
"$ B<cat libdemo.c>\n" |
| 430 |
"#include E<lt>unistd.hE<gt>\n" |
| 431 |
"\\&\n" |
| 432 |
"void\n" |
| 433 |
"consumeCpu1(int lim)\n" |
| 434 |
"{\n" |
| 435 |
" for (unsigned int j = 0; j E<lt> lim; j++)\n" |
| 436 |
"\tgetppid();\n" |
| 437 |
"}\n" |
| 438 |
"\\&\n" |
| 439 |
"void\n" |
| 440 |
"x1(void) {\n" |
| 441 |
" for (unsigned int j = 0; j E<lt> 100; j++)\n" |
| 442 |
"\tconsumeCpu1(200000);\n" |
| 443 |
"}\n" |
| 444 |
"\\&\n" |
| 445 |
"void\n" |
| 446 |
"consumeCpu2(int lim)\n" |
| 447 |
"{\n" |
| 448 |
" for (unsigned int j = 0; j E<lt> lim; j++)\n" |
| 449 |
"\tgetppid();\n" |
| 450 |
"}\n" |
| 451 |
"\\&\n" |
| 452 |
"void\n" |
| 453 |
"x2(void)\n" |
| 454 |
"{\n" |
| 455 |
" for (unsigned int j = 0; j E<lt> 1000; j++)\n" |
| 456 |
"\tconsumeCpu2(10000);\n" |
| 457 |
"}\n" |
| 458 |
|
| 459 |
#. type: Plain text |
| 460 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 461 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 462 |
msgid "" |
| 463 |
"Now we construct the shared object with the real name I<libdemo.so.1.0.1>, " |
| 464 |
"and the soname I<libdemo.so.1>:" |
| 465 |
msgstr "" |
| 466 |
"Соберём общий объект с реальным именем I<libdemo.so.1.0.1> и soname " |
| 467 |
"I<libdemo.so.1>:" |
| 468 |
|
| 469 |
#. type: Plain text |
| 470 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 471 |
#: opensuse-tumbleweed |
| 472 |
#, fuzzy, no-wrap |
| 473 |
#| msgid "" |
| 474 |
#| "$ B<cc -g -fPIC -shared -Wl,-soname,libdemo.so.1 \\[rs]>\n" |
| 475 |
#| " B<-o libdemo.so.1.0.1 libdemo.c>\n" |
| 476 |
msgid "" |
| 477 |
"$B< cc -g -fPIC -shared -Wl,-soname,libdemo.so.1 \\[rs]>\n" |
| 478 |
"B< -o libdemo.so.1.0.1 libdemo.c>;\n" |
| 479 |
msgstr "" |
| 480 |
"$ B<cc -g -fPIC -shared -Wl,-soname,libdemo.so.1 \\[rs]>\n" |
| 481 |
" B<-o libdemo.so.1.0.1 libdemo.c>\n" |
| 482 |
|
| 483 |
#. type: Plain text |
| 484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 485 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 486 |
msgid "" |
| 487 |
"Then we construct symbolic links for the library soname and the library " |
| 488 |
"linker name:" |
| 489 |
msgstr "" |
| 490 |
"Создадим символьные ссылки на soname библиотеки и имя библиотеки для " |
| 491 |
"компоновщика:" |
| 492 |
|
| 493 |
#. type: Plain text |
| 494 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 495 |
#: opensuse-tumbleweed |
| 496 |
#, fuzzy, no-wrap |
| 497 |
#| msgid "" |
| 498 |
#| "$ B<ln -sf libdemo.so.1.0.1 libdemo.so.1>\n" |
| 499 |
#| "$ B<ln -sf libdemo.so.1 libdemo.so>\n" |
| 500 |
msgid "" |
| 501 |
"$B< ln -sf libdemo.so.1.0.1 libdemo.so.1>;\n" |
| 502 |
"$B< ln -sf libdemo.so.1 libdemo.so>;\n" |
| 503 |
msgstr "" |
| 504 |
"$ B<ln -sf libdemo.so.1.0.1 libdemo.so.1>\n" |
| 505 |
"$ B<ln -sf libdemo.so.1 libdemo.so>\n" |
| 506 |
|
| 507 |
#. type: Plain text |
| 508 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 509 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 510 |
msgid "" |
| 511 |
"Next, we compile the main program, linking it against the shared object, and " |
| 512 |
"then list the dynamic dependencies of the program:" |
| 513 |
msgstr "" |
| 514 |
"Скомпилируем основную программу, скомпонуем её с общим объектом и выведем " |
| 515 |
"список динамических зависимостей программы:" |
| 516 |
|
| 517 |
#. type: Plain text |
| 518 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 519 |
#: opensuse-tumbleweed |
| 520 |
#, fuzzy, no-wrap |
| 521 |
#| msgid "" |
| 522 |
#| "$ B<cc -g -o prog prog.c -L. -ldemo>\n" |
| 523 |
#| "$ B<ldd prog>\n" |
| 524 |
#| "\tlinux-vdso.so.1 =E<gt> (0x00007fff86d66000)\n" |
| 525 |
#| "\tlibdemo.so.1 =E<gt> not found\n" |
| 526 |
#| "\tlibc.so.6 =E<gt> /lib64/libc.so.6 (0x00007fd4dc138000)\n" |
| 527 |
#| "\t/lib64/ld-linux-x86-64.so.2 (0x00007fd4dc51f000)\n" |
| 528 |
msgid "" |
| 529 |
"$B< cc -g -o prog prog.c -L.\\& -ldemo>;\n" |
| 530 |
"$B< ldd prog>;\n" |
| 531 |
"\tlinux-vdso.so.1 =E<gt> (0x00007fff86d66000)\n" |
| 532 |
"\tlibdemo.so.1 =E<gt> not found\n" |
| 533 |
"\tlibc.so.6 =E<gt> /lib64/libc.so.6 (0x00007fd4dc138000)\n" |
| 534 |
"\t/lib64/ld-linux-x86-64.so.2 (0x00007fd4dc51f000)\n" |
| 535 |
msgstr "" |
| 536 |
"$ B<cc -g -o prog prog.c -L. -ldemo>\n" |
| 537 |
"$ B<ldd prog>\n" |
| 538 |
"\tlinux-vdso.so.1 =E<gt> (0x00007fff86d66000)\n" |
| 539 |
"\tlibdemo.so.1 =E<gt> not found\n" |
| 540 |
"\tlibc.so.6 =E<gt> /lib64/libc.so.6 (0x00007fd4dc138000)\n" |
| 541 |
"\t/lib64/ld-linux-x86-64.so.2 (0x00007fd4dc51f000)\n" |
| 542 |
|
| 543 |
#. type: Plain text |
| 544 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 545 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 546 |
msgid "" |
| 547 |
"In order to get profiling information for the shared object, we define the " |
| 548 |
"environment variable B<LD_PROFILE> with the soname of the library:" |
| 549 |
msgstr "" |
| 550 |
"Чтобы получить информацию о профилировании общего объекта мы определим " |
| 551 |
"переменную окружения B<LD_PROFILE> с soname библиотеки:" |
| 552 |
|
| 553 |
#. type: Plain text |
| 554 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 555 |
#: opensuse-tumbleweed |
| 556 |
#, fuzzy, no-wrap |
| 557 |
#| msgid "$ B<export LD_PROFILE=libdemo.so.1>\n" |
| 558 |
msgid "$B< export LD_PROFILE=libdemo.so.1>;\n" |
| 559 |
msgstr "$ B<export LD_PROFILE=libdemo.so.1>\n" |
| 560 |
|
| 561 |
#. type: Plain text |
| 562 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 563 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 564 |
msgid "" |
| 565 |
"We then define the environment variable B<LD_PROFILE_OUTPUT> with the " |
| 566 |
"pathname of the directory where profile output should be written, and create " |
| 567 |
"that directory if it does not exist already:" |
| 568 |
msgstr "" |
| 569 |
"Затем определим переменную окружения B<LD_PROFILE_OUTPUT> с именем каталога " |
| 570 |
"куда нужно сохранить результат профилирования и создадим этот каталог, если " |
| 571 |
"его ещё нет:" |
| 572 |
|
| 573 |
#. type: Plain text |
| 574 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 575 |
#: opensuse-tumbleweed |
| 576 |
#, fuzzy, no-wrap |
| 577 |
#| msgid "" |
| 578 |
#| "$ B<export LD_PROFILE_OUTPUT=$(pwd)/prof_data>\n" |
| 579 |
#| "$ B<mkdir -p $LD_PROFILE_OUTPUT>\n" |
| 580 |
msgid "" |
| 581 |
"$B< export LD_PROFILE_OUTPUT=$(pwd)/prof_data>;\n" |
| 582 |
"$B< mkdir -p $LD_PROFILE_OUTPUT>;\n" |
| 583 |
msgstr "" |
| 584 |
"$ B<export LD_PROFILE_OUTPUT=$(pwd)/prof_data>\n" |
| 585 |
"$ B<mkdir -p $LD_PROFILE_OUTPUT>\n" |
| 586 |
|
| 587 |
#. type: Plain text |
| 588 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 589 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 590 |
msgid "" |
| 591 |
"B<LD_PROFILE> causes profiling output to be I<appended> to the output file " |
| 592 |
"if it already exists, so we ensure that there is no preexisting profiling " |
| 593 |
"data:" |
| 594 |
msgstr "" |
| 595 |
"Переменная B<LD_PROFILE> приводит к I<добавлению> результата профилирования " |
| 596 |
"в выходной файл, если он уже существует, поэтому убедимся, что не существует " |
| 597 |
"каких-либо результатов профилирования:" |
| 598 |
|
| 599 |
#. type: Plain text |
| 600 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 601 |
#: opensuse-tumbleweed |
| 602 |
#, fuzzy, no-wrap |
| 603 |
#| msgid "$ B<rm -f $LD_PROFILE_OUTPUT/$LD_PROFILE.profile>\n" |
| 604 |
msgid "$B< rm -f $LD_PROFILE_OUTPUT/$LD_PROFILE.profile>;\n" |
| 605 |
msgstr "$ B<rm -f $LD_PROFILE_OUTPUT/$LD_PROFILE.profile>\n" |
| 606 |
|
| 607 |
#. type: Plain text |
| 608 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 609 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 610 |
msgid "" |
| 611 |
"We then run the program to produce the profiling output, which is written to " |
| 612 |
"a file in the directory specified in B<LD_PROFILE_OUTPUT>:" |
| 613 |
msgstr "" |
| 614 |
"Затем запустим программу для получения результата профилирования, которые " |
| 615 |
"записывается в файл в каталоге, указанном в B<LD_PROFILE_OUTPUT>:" |
| 616 |
|
| 617 |
#. type: Plain text |
| 618 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 619 |
#: opensuse-tumbleweed |
| 620 |
#, fuzzy, no-wrap |
| 621 |
#| msgid "" |
| 622 |
#| "$ B<LD_LIBRARY_PATH=. ./prog>\n" |
| 623 |
#| "$ B<ls prof_data>\n" |
| 624 |
#| "libdemo.so.1.profile\n" |
| 625 |
msgid "" |
| 626 |
"$B< LD_LIBRARY_PATH=.\\& ./prog>;\n" |
| 627 |
"$B< ls prof_data>;\n" |
| 628 |
"libdemo.so.1.profile\n" |
| 629 |
msgstr "" |
| 630 |
"$ B<LD_LIBRARY_PATH=. ./prog>\n" |
| 631 |
"$ B<ls prof_data>\n" |
| 632 |
"libdemo.so.1.profile\n" |
| 633 |
|
| 634 |
#. type: Plain text |
| 635 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 636 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 637 |
msgid "" |
| 638 |
"We then use the B<sprof -p> option to generate a flat profile with counts " |
| 639 |
"and ticks:" |
| 640 |
msgstr "" |
| 641 |
"Используем параметр B<sprof -p> для генерации плоского профиля с счётчиками " |
| 642 |
"и временем:" |
| 643 |
|
| 644 |
#. type: Plain text |
| 645 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 646 |
#: opensuse-tumbleweed |
| 647 |
#, fuzzy, no-wrap |
| 648 |
#| msgid "" |
| 649 |
#| "$ B<sprof -p libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n" |
| 650 |
#| "Flat profile:\n" |
| 651 |
#| "\\&\n" |
| 652 |
#| "Each sample counts as 0.01 seconds.\n" |
| 653 |
#| " % cumulative self self total\n" |
| 654 |
#| " time seconds seconds calls us/call us/call name\n" |
| 655 |
#| " 60.00 0.06 0.06 100 600.00 consumeCpu1\n" |
| 656 |
#| " 40.00 0.10 0.04 1000 40.00 consumeCpu2\n" |
| 657 |
#| " 0.00 0.10 0.00 1 0.00 x1\n" |
| 658 |
#| " 0.00 0.10 0.00 1 0.00 x2\n" |
| 659 |
msgid "" |
| 660 |
"$B< sprof -p libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>;\n" |
| 661 |
"Flat profile:\n" |
| 662 |
"\\&\n" |
| 663 |
"Each sample counts as 0.01 seconds.\n" |
| 664 |
" % cumulative self self total\n" |
| 665 |
" time seconds seconds calls us/call us/call name\n" |
| 666 |
" 60.00 0.06 0.06 100 600.00 consumeCpu1\n" |
| 667 |
" 40.00 0.10 0.04 1000 40.00 consumeCpu2\n" |
| 668 |
" 0.00 0.10 0.00 1 0.00 x1\n" |
| 669 |
" 0.00 0.10 0.00 1 0.00 x2\n" |
| 670 |
msgstr "" |
| 671 |
"$ B<sprof -p libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n" |
| 672 |
"Flat profile:\n" |
| 673 |
"\\&\n" |
| 674 |
"Each sample counts as 0.01 seconds.\n" |
| 675 |
" % cumulative self self total\n" |
| 676 |
" time seconds seconds calls us/call us/call name\n" |
| 677 |
" 60.00 0.06 0.06 100 600.00 consumeCpu1\n" |
| 678 |
" 40.00 0.10 0.04 1000 40.00 consumeCpu2\n" |
| 679 |
" 0.00 0.10 0.00 1 0.00 x1\n" |
| 680 |
" 0.00 0.10 0.00 1 0.00 x2\n" |
| 681 |
|
| 682 |
#. type: Plain text |
| 683 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 684 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 685 |
msgid "The B<sprof -q> option generates a call graph:" |
| 686 |
msgstr "Параметр B<sprof -q> генерирует граф вызовов:" |
| 687 |
|
| 688 |
#. type: Plain text |
| 689 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 690 |
#: opensuse-tumbleweed |
| 691 |
#, fuzzy, no-wrap |
| 692 |
#| msgid "" |
| 693 |
#| "$ B<sprof -q libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n" |
| 694 |
#| "\\&\n" |
| 695 |
#| "index % time self children called name\n" |
| 696 |
#| "\\&\n" |
| 697 |
#| " 0.00 0.00 100/100 x1 [1]\n" |
| 698 |
#| "[0] 100.0 0.00 0.00 100 consumeCpu1 [0]\n" |
| 699 |
#| "-----------------------------------------------\n" |
| 700 |
#| " 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n" |
| 701 |
#| "[1] 0.0 0.00 0.00 1 x1 [1]\n" |
| 702 |
#| " 0.00 0.00 100/100 consumeCpu1 [0]\n" |
| 703 |
#| "-----------------------------------------------\n" |
| 704 |
#| " 0.00 0.00 1000/1000 x2 [3]\n" |
| 705 |
#| "[2] 0.0 0.00 0.00 1000 consumeCpu2 [2]\n" |
| 706 |
#| "-----------------------------------------------\n" |
| 707 |
#| " 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n" |
| 708 |
#| "[3] 0.0 0.00 0.00 1 x2 [3]\n" |
| 709 |
#| " 0.00 0.00 1000/1000 consumeCpu2 [2]\n" |
| 710 |
#| "-----------------------------------------------\n" |
| 711 |
msgid "" |
| 712 |
"$B< sprof -q libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>;\n" |
| 713 |
"\\&\n" |
| 714 |
"index % time self children called name\n" |
| 715 |
"\\&\n" |
| 716 |
" 0.00 0.00 100/100 x1 [1]\n" |
| 717 |
"[0] 100.0 0.00 0.00 100 consumeCpu1 [0]\n" |
| 718 |
"-----------------------------------------------\n" |
| 719 |
" 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n" |
| 720 |
"[1] 0.0 0.00 0.00 1 x1 [1]\n" |
| 721 |
" 0.00 0.00 100/100 consumeCpu1 [0]\n" |
| 722 |
"-----------------------------------------------\n" |
| 723 |
" 0.00 0.00 1000/1000 x2 [3]\n" |
| 724 |
"[2] 0.0 0.00 0.00 1000 consumeCpu2 [2]\n" |
| 725 |
"-----------------------------------------------\n" |
| 726 |
" 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n" |
| 727 |
"[3] 0.0 0.00 0.00 1 x2 [3]\n" |
| 728 |
" 0.00 0.00 1000/1000 consumeCpu2 [2]\n" |
| 729 |
"-----------------------------------------------\n" |
| 730 |
msgstr "" |
| 731 |
"$ B<sprof -q libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n" |
| 732 |
"\\&\n" |
| 733 |
"index % time self children called name\n" |
| 734 |
"\\&\n" |
| 735 |
" 0.00 0.00 100/100 x1 [1]\n" |
| 736 |
"[0] 100.0 0.00 0.00 100 consumeCpu1 [0]\n" |
| 737 |
"-----------------------------------------------\n" |
| 738 |
" 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n" |
| 739 |
"[1] 0.0 0.00 0.00 1 x1 [1]\n" |
| 740 |
" 0.00 0.00 100/100 consumeCpu1 [0]\n" |
| 741 |
"-----------------------------------------------\n" |
| 742 |
" 0.00 0.00 1000/1000 x2 [3]\n" |
| 743 |
"[2] 0.0 0.00 0.00 1000 consumeCpu2 [2]\n" |
| 744 |
"-----------------------------------------------\n" |
| 745 |
" 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n" |
| 746 |
"[3] 0.0 0.00 0.00 1 x2 [3]\n" |
| 747 |
" 0.00 0.00 1000/1000 consumeCpu2 [2]\n" |
| 748 |
"-----------------------------------------------\n" |
| 749 |
|
| 750 |
#. type: Plain text |
| 751 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 752 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 753 |
msgid "" |
| 754 |
"Above and below, the \"E<lt>UNKNOWNE<gt>\" strings represent identifiers " |
| 755 |
"that are outside of the profiled object (in this example, these are " |
| 756 |
"instances of I<main()>)." |
| 757 |
msgstr "" |
| 758 |
"Выше и ниже строки «E<lt>UNKNOWNE<gt>» представляют идентификаторы, которые " |
| 759 |
"находятся вне объекта профилирования (в этом примере они являются " |
| 760 |
"экземплярами I<main()>)." |
| 761 |
|
| 762 |
#. type: Plain text |
| 763 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 764 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 765 |
msgid "" |
| 766 |
"The B<sprof -c> option generates a list of call pairs and the number of " |
| 767 |
"their occurrences:" |
| 768 |
msgstr "" |
| 769 |
"Параметр B<sprof -c> генерирует список пар вызовов и количество их появления:" |
| 770 |
|
| 771 |
#. type: Plain text |
| 772 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 773 |
#: opensuse-tumbleweed |
| 774 |
#, fuzzy, no-wrap |
| 775 |
#| msgid "" |
| 776 |
#| "$ B<sprof -c libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n" |
| 777 |
#| "E<lt>UNKNOWNE<gt> x1 1\n" |
| 778 |
#| "x1 consumeCpu1 100\n" |
| 779 |
#| "E<lt>UNKNOWNE<gt> x2 1\n" |
| 780 |
#| "x2 consumeCpu2 1000\n" |
| 781 |
msgid "" |
| 782 |
"$B< sprof -c libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>;\n" |
| 783 |
"E<lt>UNKNOWNE<gt> x1 1\n" |
| 784 |
"x1 consumeCpu1 100\n" |
| 785 |
"E<lt>UNKNOWNE<gt> x2 1\n" |
| 786 |
"x2 consumeCpu2 1000\n" |
| 787 |
msgstr "" |
| 788 |
"$ B<sprof -c libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n" |
| 789 |
"E<lt>UNKNOWNE<gt> x1 1\n" |
| 790 |
"x1 consumeCpu1 100\n" |
| 791 |
"E<lt>UNKNOWNE<gt> x2 1\n" |
| 792 |
"x2 consumeCpu2 1000\n" |
| 793 |
|
| 794 |
#. type: SH |
| 795 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 796 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 797 |
#, no-wrap |
| 798 |
msgid "SEE ALSO" |
| 799 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 800 |
|
| 801 |
#. type: Plain text |
| 802 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 803 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 804 |
msgid "B<gprof>(1), B<ldd>(1), B<ld.so>(8)" |
| 805 |
msgstr "B<gprof>(1), B<ldd>(1), B<ld.so>(8)" |
| 806 |
|
| 807 |
#. type: TH |
| 808 |
#: debian-trixie |
| 809 |
#, no-wrap |
| 810 |
msgid "2024-06-15" |
| 811 |
msgstr "15 июня 2024 г." |
| 812 |
|
| 813 |
#. type: TH |
| 814 |
#: debian-trixie |
| 815 |
#, no-wrap |
| 816 |
msgid "Linux man-pages 6.9.1" |
| 817 |
msgstr "Страницы руководства Linux 6.9.1" |
| 818 |
|
| 819 |
#. type: Plain text |
| 820 |
#: debian-trixie |
| 821 |
#, no-wrap |
| 822 |
msgid "B<sprof> [I<option>]... I<shared-object-path> [I<profile-data-path>]\n" |
| 823 |
msgstr "B<sprof> [I<параметр>]… I<shared-object-path> [I<profile-data-path>]\n" |
| 824 |
|
| 825 |
#. type: Plain text |
| 826 |
#: debian-trixie fedora-44 fedora-rawhide |
| 827 |
#, no-wrap |
| 828 |
msgid "" |
| 829 |
"$ B<cat prog.c>\n" |
| 830 |
"#include E<lt>stdlib.hE<gt>\n" |
| 831 |
"\\&\n" |
| 832 |
"void x1(void);\n" |
| 833 |
"void x2(void);\n" |
| 834 |
"\\&\n" |
| 835 |
"int\n" |
| 836 |
"main(int argc, char *argv[])\n" |
| 837 |
"{\n" |
| 838 |
" x1();\n" |
| 839 |
" x2();\n" |
| 840 |
" exit(EXIT_SUCCESS);\n" |
| 841 |
"}\n" |
| 842 |
msgstr "" |
| 843 |
"$ B<cat prog.c>\n" |
| 844 |
"#include E<lt>stdlib.hE<gt>\n" |
| 845 |
"\\&\n" |
| 846 |
"void x1(void);\n" |
| 847 |
"void x2(void);\n" |
| 848 |
"\\&\n" |
| 849 |
"int\n" |
| 850 |
"main(int argc, char *argv[])\n" |
| 851 |
"{\n" |
| 852 |
" x1();\n" |
| 853 |
" x2();\n" |
| 854 |
" exit(EXIT_SUCCESS);\n" |
| 855 |
"}\n" |
| 856 |
|
| 857 |
#. type: Plain text |
| 858 |
#: debian-trixie fedora-44 fedora-rawhide |
| 859 |
#, no-wrap |
| 860 |
msgid "" |
| 861 |
"$ B<cat libdemo.c>\n" |
| 862 |
"#include E<lt>unistd.hE<gt>\n" |
| 863 |
"\\&\n" |
| 864 |
"void\n" |
| 865 |
"consumeCpu1(int lim)\n" |
| 866 |
"{\n" |
| 867 |
" for (unsigned int j = 0; j E<lt> lim; j++)\n" |
| 868 |
"\tgetppid();\n" |
| 869 |
"}\n" |
| 870 |
"\\&\n" |
| 871 |
"void\n" |
| 872 |
"x1(void) {\n" |
| 873 |
" for (unsigned int j = 0; j E<lt> 100; j++)\n" |
| 874 |
"\tconsumeCpu1(200000);\n" |
| 875 |
"}\n" |
| 876 |
"\\&\n" |
| 877 |
"void\n" |
| 878 |
"consumeCpu2(int lim)\n" |
| 879 |
"{\n" |
| 880 |
" for (unsigned int j = 0; j E<lt> lim; j++)\n" |
| 881 |
"\tgetppid();\n" |
| 882 |
"}\n" |
| 883 |
"\\&\n" |
| 884 |
"void\n" |
| 885 |
"x2(void)\n" |
| 886 |
"{\n" |
| 887 |
" for (unsigned int j = 0; j E<lt> 1000; j++)\n" |
| 888 |
"\tconsumeCpu2(10000);\n" |
| 889 |
"}\n" |
| 890 |
msgstr "" |
| 891 |
"$ B<cat libdemo.c>\n" |
| 892 |
"#include E<lt>unistd.hE<gt>\n" |
| 893 |
"\\&\n" |
| 894 |
"void\n" |
| 895 |
"consumeCpu1(int lim)\n" |
| 896 |
"{\n" |
| 897 |
" for (unsigned int j = 0; j E<lt> lim; j++)\n" |
| 898 |
"\tgetppid();\n" |
| 899 |
"}\n" |
| 900 |
"\\&\n" |
| 901 |
"void\n" |
| 902 |
"x1(void) {\n" |
| 903 |
" for (unsigned int j = 0; j E<lt> 100; j++)\n" |
| 904 |
"\tconsumeCpu1(200000);\n" |
| 905 |
"}\n" |
| 906 |
"\\&\n" |
| 907 |
"void\n" |
| 908 |
"consumeCpu2(int lim)\n" |
| 909 |
"{\n" |
| 910 |
" for (unsigned int j = 0; j E<lt> lim; j++)\n" |
| 911 |
"\tgetppid();\n" |
| 912 |
"}\n" |
| 913 |
"\\&\n" |
| 914 |
"void\n" |
| 915 |
"x2(void)\n" |
| 916 |
"{\n" |
| 917 |
" for (unsigned int j = 0; j E<lt> 1000; j++)\n" |
| 918 |
"\tconsumeCpu2(10000);\n" |
| 919 |
"}\n" |
| 920 |
|
| 921 |
#. type: Plain text |
| 922 |
#: debian-trixie fedora-44 fedora-rawhide |
| 923 |
#, no-wrap |
| 924 |
msgid "" |
| 925 |
"$ B<cc -g -fPIC -shared -Wl,-soname,libdemo.so.1 \\[rs]>\n" |
| 926 |
" B<-o libdemo.so.1.0.1 libdemo.c>\n" |
| 927 |
msgstr "" |
| 928 |
"$ B<cc -g -fPIC -shared -Wl,-soname,libdemo.so.1 \\[rs]>\n" |
| 929 |
" B<-o libdemo.so.1.0.1 libdemo.c>\n" |
| 930 |
|
| 931 |
#. type: Plain text |
| 932 |
#: debian-trixie fedora-44 fedora-rawhide |
| 933 |
#, no-wrap |
| 934 |
msgid "" |
| 935 |
"$ B<ln -sf libdemo.so.1.0.1 libdemo.so.1>\n" |
| 936 |
"$ B<ln -sf libdemo.so.1 libdemo.so>\n" |
| 937 |
msgstr "" |
| 938 |
"$ B<ln -sf libdemo.so.1.0.1 libdemo.so.1>\n" |
| 939 |
"$ B<ln -sf libdemo.so.1 libdemo.so>\n" |
| 940 |
|
| 941 |
#. type: Plain text |
| 942 |
#: debian-trixie fedora-44 fedora-rawhide |
| 943 |
#, no-wrap |
| 944 |
msgid "" |
| 945 |
"$ B<cc -g -o prog prog.c -L. -ldemo>\n" |
| 946 |
"$ B<ldd prog>\n" |
| 947 |
"\tlinux-vdso.so.1 =E<gt> (0x00007fff86d66000)\n" |
| 948 |
"\tlibdemo.so.1 =E<gt> not found\n" |
| 949 |
"\tlibc.so.6 =E<gt> /lib64/libc.so.6 (0x00007fd4dc138000)\n" |
| 950 |
"\t/lib64/ld-linux-x86-64.so.2 (0x00007fd4dc51f000)\n" |
| 951 |
msgstr "" |
| 952 |
"$ B<cc -g -o prog prog.c -L. -ldemo>\n" |
| 953 |
"$ B<ldd prog>\n" |
| 954 |
"\tlinux-vdso.so.1 =E<gt> (0x00007fff86d66000)\n" |
| 955 |
"\tlibdemo.so.1 =E<gt> not found\n" |
| 956 |
"\tlibc.so.6 =E<gt> /lib64/libc.so.6 (0x00007fd4dc138000)\n" |
| 957 |
"\t/lib64/ld-linux-x86-64.so.2 (0x00007fd4dc51f000)\n" |
| 958 |
|
| 959 |
#. type: Plain text |
| 960 |
#: debian-trixie fedora-44 fedora-rawhide |
| 961 |
#, no-wrap |
| 962 |
msgid "$ B<export LD_PROFILE=libdemo.so.1>\n" |
| 963 |
msgstr "$ B<export LD_PROFILE=libdemo.so.1>\n" |
| 964 |
|
| 965 |
#. type: Plain text |
| 966 |
#: debian-trixie fedora-44 fedora-rawhide |
| 967 |
#, no-wrap |
| 968 |
msgid "" |
| 969 |
"$ B<export LD_PROFILE_OUTPUT=$(pwd)/prof_data>\n" |
| 970 |
"$ B<mkdir -p $LD_PROFILE_OUTPUT>\n" |
| 971 |
msgstr "" |
| 972 |
"$ B<export LD_PROFILE_OUTPUT=$(pwd)/prof_data>\n" |
| 973 |
"$ B<mkdir -p $LD_PROFILE_OUTPUT>\n" |
| 974 |
|
| 975 |
#. type: Plain text |
| 976 |
#: debian-trixie fedora-44 fedora-rawhide |
| 977 |
#, no-wrap |
| 978 |
msgid "$ B<rm -f $LD_PROFILE_OUTPUT/$LD_PROFILE.profile>\n" |
| 979 |
msgstr "$ B<rm -f $LD_PROFILE_OUTPUT/$LD_PROFILE.profile>\n" |
| 980 |
|
| 981 |
#. type: Plain text |
| 982 |
#: debian-trixie fedora-44 fedora-rawhide |
| 983 |
#, no-wrap |
| 984 |
msgid "" |
| 985 |
"$ B<LD_LIBRARY_PATH=. ./prog>\n" |
| 986 |
"$ B<ls prof_data>\n" |
| 987 |
"libdemo.so.1.profile\n" |
| 988 |
msgstr "" |
| 989 |
"$ B<LD_LIBRARY_PATH=. ./prog>\n" |
| 990 |
"$ B<ls prof_data>\n" |
| 991 |
"libdemo.so.1.profile\n" |
| 992 |
|
| 993 |
#. type: Plain text |
| 994 |
#: debian-trixie fedora-44 fedora-rawhide |
| 995 |
#, no-wrap |
| 996 |
msgid "" |
| 997 |
"$ B<sprof -p libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n" |
| 998 |
"Flat profile:\n" |
| 999 |
"\\&\n" |
| 1000 |
"Each sample counts as 0.01 seconds.\n" |
| 1001 |
" % cumulative self self total\n" |
| 1002 |
" time seconds seconds calls us/call us/call name\n" |
| 1003 |
" 60.00 0.06 0.06 100 600.00 consumeCpu1\n" |
| 1004 |
" 40.00 0.10 0.04 1000 40.00 consumeCpu2\n" |
| 1005 |
" 0.00 0.10 0.00 1 0.00 x1\n" |
| 1006 |
" 0.00 0.10 0.00 1 0.00 x2\n" |
| 1007 |
msgstr "" |
| 1008 |
"$ B<sprof -p libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n" |
| 1009 |
"Flat profile:\n" |
| 1010 |
"\\&\n" |
| 1011 |
"Each sample counts as 0.01 seconds.\n" |
| 1012 |
" % cumulative self self total\n" |
| 1013 |
" time seconds seconds calls us/call us/call name\n" |
| 1014 |
" 60.00 0.06 0.06 100 600.00 consumeCpu1\n" |
| 1015 |
" 40.00 0.10 0.04 1000 40.00 consumeCpu2\n" |
| 1016 |
" 0.00 0.10 0.00 1 0.00 x1\n" |
| 1017 |
" 0.00 0.10 0.00 1 0.00 x2\n" |
| 1018 |
|
| 1019 |
#. type: Plain text |
| 1020 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1021 |
#, no-wrap |
| 1022 |
msgid "" |
| 1023 |
"$ B<sprof -q libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n" |
| 1024 |
"\\&\n" |
| 1025 |
"index % time self children called name\n" |
| 1026 |
"\\&\n" |
| 1027 |
" 0.00 0.00 100/100 x1 [1]\n" |
| 1028 |
"[0] 100.0 0.00 0.00 100 consumeCpu1 [0]\n" |
| 1029 |
"-----------------------------------------------\n" |
| 1030 |
" 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n" |
| 1031 |
"[1] 0.0 0.00 0.00 1 x1 [1]\n" |
| 1032 |
" 0.00 0.00 100/100 consumeCpu1 [0]\n" |
| 1033 |
"-----------------------------------------------\n" |
| 1034 |
" 0.00 0.00 1000/1000 x2 [3]\n" |
| 1035 |
"[2] 0.0 0.00 0.00 1000 consumeCpu2 [2]\n" |
| 1036 |
"-----------------------------------------------\n" |
| 1037 |
" 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n" |
| 1038 |
"[3] 0.0 0.00 0.00 1 x2 [3]\n" |
| 1039 |
" 0.00 0.00 1000/1000 consumeCpu2 [2]\n" |
| 1040 |
"-----------------------------------------------\n" |
| 1041 |
msgstr "" |
| 1042 |
"$ B<sprof -q libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n" |
| 1043 |
"\\&\n" |
| 1044 |
"index % time self children called name\n" |
| 1045 |
"\\&\n" |
| 1046 |
" 0.00 0.00 100/100 x1 [1]\n" |
| 1047 |
"[0] 100.0 0.00 0.00 100 consumeCpu1 [0]\n" |
| 1048 |
"-----------------------------------------------\n" |
| 1049 |
" 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n" |
| 1050 |
"[1] 0.0 0.00 0.00 1 x1 [1]\n" |
| 1051 |
" 0.00 0.00 100/100 consumeCpu1 [0]\n" |
| 1052 |
"-----------------------------------------------\n" |
| 1053 |
" 0.00 0.00 1000/1000 x2 [3]\n" |
| 1054 |
"[2] 0.0 0.00 0.00 1000 consumeCpu2 [2]\n" |
| 1055 |
"-----------------------------------------------\n" |
| 1056 |
" 0.00 0.00 1/1 E<lt>UNKNOWNE<gt>\n" |
| 1057 |
"[3] 0.0 0.00 0.00 1 x2 [3]\n" |
| 1058 |
" 0.00 0.00 1000/1000 consumeCpu2 [2]\n" |
| 1059 |
"-----------------------------------------------\n" |
| 1060 |
|
| 1061 |
#. type: Plain text |
| 1062 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1063 |
#, no-wrap |
| 1064 |
msgid "" |
| 1065 |
"$ B<sprof -c libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n" |
| 1066 |
"E<lt>UNKNOWNE<gt> x1 1\n" |
| 1067 |
"x1 consumeCpu1 100\n" |
| 1068 |
"E<lt>UNKNOWNE<gt> x2 1\n" |
| 1069 |
"x2 consumeCpu2 1000\n" |
| 1070 |
msgstr "" |
| 1071 |
"$ B<sprof -c libdemo.so.1 $LD_PROFILE_OUTPUT/libdemo.so.1.profile>\n" |
| 1072 |
"E<lt>UNKNOWNE<gt> x1 1\n" |
| 1073 |
"x1 consumeCpu1 100\n" |
| 1074 |
"E<lt>UNKNOWNE<gt> x2 1\n" |
| 1075 |
"x2 consumeCpu2 1000\n" |
| 1076 |
|
| 1077 |
#. type: TH |
| 1078 |
#: fedora-44 fedora-rawhide |
| 1079 |
#, no-wrap |
| 1080 |
msgid "2024-11-25" |
| 1081 |
msgstr "25 ноября 2024 г." |
| 1082 |
|
| 1083 |
#. type: TH |
| 1084 |
#: fedora-44 fedora-rawhide |
| 1085 |
#, no-wrap |
| 1086 |
msgid "Linux man-pages 6.13" |
| 1087 |
msgstr "Страницы руководства Linux 6.13" |
| 1088 |
|
| 1089 |
#. type: TH |
| 1090 |
#: mageia-cauldron |
| 1091 |
#, no-wrap |
| 1092 |
msgid "Linux man-pages 6.17" |
| 1093 |
msgstr "Страницы руководства Linux 6.17" |
| 1094 |
|
| 1095 |
#. type: TH |
| 1096 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1097 |
#, no-wrap |
| 1098 |
msgid "Linux man-pages (unreleased)" |
| 1099 |
msgstr "Страницы руководства Linux (не выпущены)" |