{"action":"closed","issue":{"url":"https://api.github.com/repos/pythonprofilers/memory_profiler/issues/195","repository_url":"https://api.github.com/repos/pythonprofilers/memory_profiler","labels_url":"https://api.github.com/repos/pythonprofilers/memory_profiler/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/pythonprofilers/memory_profiler/issues/195/comments","events_url":"https://api.github.com/repos/pythonprofilers/memory_profiler/issues/195/events","html_url":"https://github.com/pythonprofilers/memory_profiler/issues/195","id":314687882,"node_id":"MDU6SXNzdWUzMTQ2ODc4ODI=","number":195,"title":"large negative increment values in line profiler","user":{"login":"nathantsoi","id":399770,"node_id":"MDQ6VXNlcjM5OTc3MA==","avatar_url":"https://avatars2.githubusercontent.com/u/399770?v=4","gravatar_id":"","url":"https://api.github.com/users/nathantsoi","html_url":"https://github.com/nathantsoi","followers_url":"https://api.github.com/users/nathantsoi/followers","following_url":"https://api.github.com/users/nathantsoi/following{/other_user}","gists_url":"https://api.github.com/users/nathantsoi/gists{/gist_id}","starred_url":"https://api.github.com/users/nathantsoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathantsoi/subscriptions","organizations_url":"https://api.github.com/users/nathantsoi/orgs","repos_url":"https://api.github.com/users/nathantsoi/repos","events_url":"https://api.github.com/users/nathantsoi/events{/privacy}","received_events_url":"https://api.github.com/users/nathantsoi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-04-16T14:46:15Z","updated_at":"2018-08-16T13:45:31Z","closed_at":"2018-08-16T13:45:31Z","author_association":"NONE","body":"i am using memory profile as follows:\r\n```\r\nan_instance = AClass()\r\nprecision=1\r\nbackend='psutil'\r\nwith open(\"mem-profile.txt\", 'w') as stream:\r\n  prof = mp.LineProfiler(backend=backend)\r\n  res = prof(an_instance.window)(template)\r\n  mp.show_results(prof, stream=stream, precision=precision)\r\nreturn res\r\n```\r\n\r\nhowever the results seem strange, I see large negative increments, much larger than any calls with positive increments: \r\n\r\n```\r\nLine #    Mem usage    Increment\r\n================================\r\n    51    192.2 MiB    192.2 MiB\r\n    52                          \r\n    53                          \r\n    54                          \r\n    55                          \r\n    56                          \r\n    57                          \r\n    58    192.2 MiB      0.0 MiB\r\n    59    736.4 MiB     -8.1 MiB\r\n    60    736.4 MiB     -6.8 MiB\r\n    61    736.4 MiB     -7.4 MiB\r\n    62    736.4 MiB     -8.1 MiB\r\n    63                          \r\n    64    736.4 MiB     -7.7 MiB\r\n    65    736.4 MiB     -8.0 MiB\r\n    66    736.4 MiB     -7.9 MiB\r\n    67    736.4 MiB     -8.1 MiB\r\n    68                          \r\n    69    736.4 MiB     -7.9 MiB\r\n    70    736.4 MiB     -8.0 MiB\r\n    71    736.4 MiB     -8.1 MiB\r\n    72    736.4 MiB     -8.1 MiB\r\n    73                          \r\n    74    736.4 MiB     -8.1 MiB\r\n    75    736.4 MiB     -8.1 MiB\r\n    76    736.4 MiB     -8.1 MiB\r\n    77                          \r\n    78                          \r\n    79                          \r\n    80                          \r\n    81    736.4 MiB    -47.7 MiB\r\n    82    736.4 MiB  -1028.5 MiB\r\n    83    736.4 MiB  -5789.3 MiB\r\n    84    736.4 MiB  -4799.5 MiB\r\n    85                          \r\n    86    736.4 MiB  -4796.0 MiB\r\n    87                          \r\n    88                          \r\n    89    736.4 MiB  -4789.0 MiB\r\n    90                          \r\n    91                          \r\n    92                          \r\n    93                          \r\n    94    736.4 MiB  -4790.4 MiB\r\n    95    599.3 MiB      6.2 MiB\r\n    96    599.3 MiB     85.1 MiB\r\n    97    599.3 MiB     48.6 MiB\r\n    98                          \r\n    99    599.3 MiB      0.0 MiB\r\n   100    599.3 MiB     42.1 MiB\r\n   101    599.3 MiB      0.0 MiB\r\n   102    599.3 MiB      2.3 MiB\r\n   103                          \r\n   104    736.4 MiB  -4782.2 MiB\r\n   105    736.4 MiB  -4767.1 MiB\r\n   106    736.4 MiB  -4795.4 MiB\r\n   107    736.4 MiB  -4797.3 MiB\r\n   108                          \r\n   109    736.4 MiB  -4605.9 MiB\r\n   110                          \r\n   111                          \r\n   112                          \r\n   113    736.4 MiB      0.0 MiB\r\n   114    753.1 MiB   -807.8 MiB\r\n   115    753.1 MiB -22614.2 MiB\r\n   116    753.1 MiB -21805.3 MiB\r\n   117    753.1 MiB -21806.2 MiB\r\n   118    753.1 MiB -21806.2 MiB\r\n   119    753.1 MiB -12706.5 MiB\r\n   120                          \r\n   121    753.1 MiB -12691.2 MiB\r\n   122    753.1 MiB -12707.0 MiB\r\n   123                          \r\n   124    753.1 MiB  -9099.8 MiB\r\n   125    753.1 MiB   -807.8 MiB\r\n   126    753.1 MiB   -807.8 MiB\r\n   127                          \r\n   128    753.1 MiB   -807.8 MiB\r\n   129    753.1 MiB   -807.8 MiB\r\n   130    753.1 MiB   -807.8 MiB\r\n   131    753.1 MiB   -807.8 MiB\r\n   132                          \r\n   133    753.1 MiB   -807.8 MiB\r\n   134                          \r\n   135    753.1 MiB   -807.8 MiB\r\n   136    753.1 MiB   -807.8 MiB\r\n   137                          \r\n   138                          \r\n   139    753.1 MiB   -807.7 MiB\r\n   140    753.1 MiB   -807.7 MiB\r\n   141                          \r\n   142    753.1 MiB   -807.8 MiB\r\n   143                          \r\n   144    752.9 MiB     -0.2 MiB\r\n   145                          \r\n   146                          \r\n   147                          \r\n   148                          \r\n   149                          \r\n   150                          \r\n   151                          \r\n   152    752.9 MiB      0.0 MiB\r\n\r\n```"}}
{"actor":{"display_login":"Juanlu001"}}