Upgrade to Pro — share decks privately, control downloads, hide ads and more …

O Mundo Mágico dos Profilers

O Mundo Mágico dos Profilers

Profilers são ferramentas que podem ajudar a identificar gargalos e melhorar a performance da sua aplicação.
Vamos entender melhor o que são, omo funcionam e como usar na sua aplicação.

Apresentada durante a CloudConn 2021 - https://www.thecloudconn.com/
Apresentada durante o DarkmiraTour2020 - https://php.darkmiratour.rocks/2020

Diana Arnos

January 29, 2021
Tweet

More Decks by Diana Arnos

Other Decks in Programming

Transcript

  1. -------------------------------------------------------------------------------- I1 cache: 65536 B, 64 B, 2-way associative D1

    cache: 65536 B, 64 B, 2-way associative LL cache: 1048576 B, 64 B, 16-way associative Command: ./badprime Data file: cachegrind.out.2345 Events recorded: Ir I1mr ILmr Dr D1mr DLmr Dw D1mw DLmw Bc Bcm Bi Bim Events shown: Ir I1mr ILmr Dr D1mr DLmr Dw D1mw DLmw Bc Bcm Bi Bim Event sort order: Ir I1mr ILmr Dr D1mr DLmr Dw D1mw DLmw Bc Bcm Bi Bim Thresholds: 0.1 100 100 100 100 100 100 100 100 100 100 100 100 Include dirs: User annotated: Auto-annotation: off -------------------------------------------------------------------------------- Ir I1mr ILmr Dr D1mr DLmr Dw D1mw DLmw Bc Bcm Bi Bim ------------------------------------------------------------------------ 922,466,826 1,234 1,183 349,345,693 7,557 5,119 10,114,555 1,555 1,197 139,773,671 1,072,250 3,653 349 PROGRAM TOTALS -------------------------------------------------------------------------------- Ir I1mr ILmr Dr D1mr DLmr Dw D1mw DLmw Bc Bcm Bi Bim file:function -------------------------------------------------------------------------------- 895,017,739 1 0 340,937,515 0 0 5,000,000 0 0 135,559,306 968,532 0 0 badprime.cpp:isPrime(int) 16,000,000 0 0 5,000,000 0 0 4,000,000 0 0 2,000,000 8 0 0 std::sqrt<int>(int) 10,078,513 2 1 3,078,503 0 0 1,000,003 0 0 2,000,001 94,081 0 0 badprime.cpp:main