Skip to content

Instantly share code, notes, and snippets.

@fgregg
Created November 4, 2014 23:21
Show Gist options
  • Select an option

  • Save fgregg/1d139642490ea771f9e1 to your computer and use it in GitHub Desktop.

Select an option

Save fgregg/1d139642490ea771f9e1 to your computer and use it in GitHub Desktop.
--------------------------------------------------------------------------------
Command: python mysql_example.py
Massif arguments: --massif-out-file=out.txt --depth=1
ms_print arguments: out.txt
--------------------------------------------------------------------------------
MB
686.3^ #
| @:: #::
| @: #::
| :::::::::@: ::::::::#::
| :: :: @: ::: :::#::
| ::: :: @: :: : :::#::
| :::: :: @: :@:: : :::#::
| @@:::: :: @: :::@:: : :::#:::
| ::@ :::: :: @: ::::@:: : :::#:::
| ::@ :::: :: @: ::::@:: : :::#:::
| ::::@ :::: :: @: :::::::@:: : :::#:::
| ::@: ::@ :::: :: @: ::: ::::@:: : :::#:::
| : @: ::@ :::: :: @: @::: ::::@:: : :::#:::
| ::: @: ::@ :::: :: @: ::@::: ::::@:: : :::#:::
| @::: @: ::@ :::: :: @: : :::@::: ::::@:: : :::#:::
| ::@::: @: ::@ :::: :: @: : @@:::@::: ::::@:: : :::#:::
| : @::: @: ::@ :::: :: @: : :@ :::@::: ::::@:: : :::#:::
| ::: @::: @: ::@ :::: :: @: : :::@ :::@::: ::::@:: : :::#:::
| ::: : @::: @: ::@ :::: :: @: : ::::@ :::@::: ::::@:: : :::#:::
| :: : : @::: @: ::@ :::: :: @: ::::::@ :::@::: ::::@:: : :::#:::
0 +----------------------------------------------------------------------->Gi
0 43.50
Number of snapshots: 57
Detailed snapshots: [7, 11, 15, 23, 32, 36, 44, 52 (peak)]
--------------------------------------------------------------------------------
n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
0 0 0 0 0 0
1 985,910,122 26,645,408 26,395,304 250,104 0
2 1,861,463,307 61,027,496 60,449,704 577,792 0
3 2,557,495,260 90,037,040 89,190,440 846,600 0
4 3,602,024,566 128,993,032 127,747,816 1,245,216 0
5 4,581,419,301 171,576,656 169,959,848 1,616,808 0
6 5,105,062,618 191,085,656 189,269,096 1,816,560 0
7 5,871,337,990 219,694,264 217,585,288 2,108,976 0
99.04% (217,585,288B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->94.10% (206,724,864B) 0x527958: dictresize.18440 (dictobject.c:643)
|
->02.91% (6,389,472B) 0x527F2C: fill_free_list.15780 (intobject.c:52)
|
->01.02% (2,242,685B) in 179 places, all below massif's threshold (01.00%)
|
->01.01% (2,228,267B) 0x5192B6: PyString_FromStringAndSize (obmalloc.c:963)
--------------------------------------------------------------------------------
n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
8 6,814,472,756 254,844,080 252,375,208 2,468,872 0
9 7,462,851,184 279,002,864 276,286,632 2,716,232 0
10 8,420,234,746 326,842,576 323,765,352 3,077,224 0
11 9,197,281,453 355,797,376 352,423,688 3,373,688 0
99.05% (352,423,688B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->94.95% (337,829,376B) 0x527958: dictresize.18440 (dictobject.c:643)
|
->02.85% (10,123,360B) 0x527F2C: fill_free_list.15780 (intobject.c:52)
|
->01.26% (4,470,952B) in 180 places, all below massif's threshold (01.00%)
--------------------------------------------------------------------------------
n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
12 10,196,290,688 393,022,360 389,267,528 3,754,832 0
13 11,306,338,821 434,490,000 430,311,592 4,178,408 0
14 11,972,381,851 459,309,760 454,877,224 4,432,536 0
15 12,527,401,849 479,989,272 475,345,000 4,644,272 0
99.03% (475,345,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->95.19% (456,901,632B) 0x527958: dictresize.18440 (dictobject.c:643)
|
->02.89% (13,874,112B) 0x527F2C: fill_free_list.15780 (intobject.c:52)
|
->00.95% (4,569,256B) in 1+ places, all below ms_print's threshold (01.00%)
--------------------------------------------------------------------------------
n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
16 13,704,105,220 523,826,792 518,733,672 5,093,120 0
17 14,384,996,502 549,193,560 543,840,712 5,352,848 0
18 15,236,121,860 580,894,592 575,217,160 5,677,432 0
19 16,045,519,978 625,047,984 619,176,136 5,871,848 0
20 19,522,101,460 630,696,880 624,824,976 5,871,904 0
21 20,066,499,583 630,989,808 625,026,512 5,963,296 0
22 20,747,354,972 630,999,464 625,036,056 5,963,408 0
23 21,455,932,576 706,925,128 700,952,504 5,972,624 0
99.16% (700,952,504B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->95.15% (672,605,184B) 0x527958: dictresize.18440 (dictobject.c:643)
|
->02.50% (17,680,416B) 0x527F2C: fill_free_list.15780 (intobject.c:52)
|
->01.51% (10,666,904B) in 183 places, all below massif's threshold (01.00%)
--------------------------------------------------------------------------------
n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
24 22,003,125,987 688,500,776 682,503,128 5,997,648 0
25 22,684,005,896 688,500,416 682,502,776 5,997,640 0
26 23,364,858,267 241,964,176 240,052,392 1,911,784 0
27 24,045,747,500 56,114,408 55,611,816 502,592 0
28 24,726,651,837 83,295,616 82,537,128 758,488 0
29 25,656,555,636 120,282,080 119,170,728 1,111,352 0
30 26,246,013,459 141,741,584 140,409,000 1,332,584 0
31 27,130,209,404 173,892,816 172,228,776 1,664,040 0
32 27,719,668,180 201,414,080 199,531,176 1,882,904 0
99.07% (199,531,176B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->87.51% (176,248,320B) 0x527958: dictresize.18440 (dictobject.c:643)
|
->08.78% (17,680,416B) 0x527F2C: fill_free_list.15780 (intobject.c:52)
|
->01.68% (3,374,173B) in 188 places, all below massif's threshold (01.00%)
|
->01.11% (2,228,267B) 0x5192B6: PyString_FromStringAndSize (obmalloc.c:963)
--------------------------------------------------------------------------------
n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
33 28,603,853,855 233,563,760 231,349,416 2,214,344 0
34 29,488,070,230 265,717,320 263,171,496 2,545,824 0
35 30,077,546,654 287,150,440 284,383,656 2,766,784 0
36 30,667,033,617 308,580,456 305,592,744 2,987,712 0
99.03% (305,592,744B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->91.49% (282,309,888B) 0x527958: dictresize.18440 (dictobject.c:643)
|
->05.73% (17,680,416B) 0x527F2C: fill_free_list.15780 (intobject.c:52)
|
->01.82% (5,602,440B) in 189 places, all below massif's threshold (01.00%)
--------------------------------------------------------------------------------
n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
37 31,256,518,883 342,189,088 338,984,616 3,204,472 0
38 31,845,986,761 363,619,880 360,194,472 3,425,408 0
39 32,730,171,283 395,755,592 391,998,888 3,756,704 0
40 33,909,095,394 438,555,872 434,357,928 4,197,944 0
41 34,793,301,326 470,623,296 466,094,760 4,528,536 0
42 35,382,771,700 491,988,128 487,239,336 4,748,792 0
43 35,972,235,766 513,351,408 508,382,376 4,969,032 0
44 36,561,718,935 534,710,808 529,521,576 5,189,232 0
99.03% (529,521,576B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->94.68% (506,238,720B) 0x527958: dictresize.18440 (dictobject.c:643)
|
->03.31% (17,680,416B) 0x527F2C: fill_free_list.15780 (intobject.c:52)
|
->01.05% (5,602,440B) in 189 places, all below massif's threshold (01.00%)
--------------------------------------------------------------------------------
n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
45 37,445,927,617 566,726,240 561,206,952 5,519,288 0
46 38,035,401,574 588,074,776 582,335,400 5,739,376 0
47 39,016,343,054 637,904,728 631,911,080 5,993,648 0
48 42,614,524,760 643,372,008 637,379,784 5,992,224 0
49 43,206,980,308 643,667,320 637,583,864 6,083,456 0
50 43,730,624,204 643,665,592 637,581,992 6,083,600 0
51 44,255,686,425 643,806,728 637,722,616 6,084,112 0
52 44,614,935,633 719,589,472 713,496,696 6,092,776 0
99.15% (713,496,696B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->95.07% (684,125,184B) 0x527958: dictresize.18440 (dictobject.c:643)
|
->02.46% (17,680,416B) 0x527F2C: fill_free_list.15780 (intobject.c:52)
|
->01.62% (11,691,096B) in 189 places, all below massif's threshold (01.00%)
--------------------------------------------------------------------------------
n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
53 45,138,583,702 701,164,192 695,046,416 6,117,776 0
54 45,662,229,963 701,164,192 695,046,416 6,117,776 0
55 46,185,873,513 475,949,904 471,625,896 4,324,008 0
56 46,709,517,546 158,795,600 157,741,224 1,054,376 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment