Title: Is there a specific reason memory_usage return None when stream=True ? · Issue #397 · pythonprofilers/memory_profiler · GitHub
Open Graph Title: Is there a specific reason memory_usage return None when stream=True ? · Issue #397 · pythonprofilers/memory_profiler
X Title: Is there a specific reason memory_usage return None when stream=True ? · Issue #397 · pythonprofilers/memory_profiler
Description: Hi, I'm just wondering why when stream is not None, memory_usage return None ? https://github.com/pythonprofilers/memory_profiler/blob/a99a3c3b3c2eb01c90f6e14ddfcb85b3e97f9885/memory_profiler.py#L478C6-L478C6 I'm using stream + retval so...
Open Graph Description: Hi, I'm just wondering why when stream is not None, memory_usage return None ? https://github.com/pythonprofilers/memory_profiler/blob/a99a3c3b3c2eb01c90f6e14ddfcb85b3e97f9885/memory_profiler.py#L4...
X Description: Hi, I'm just wondering why when stream is not None, memory_usage return None ? https://github.com/pythonprofilers/memory_profiler/blob/a99a3c3b3c2eb01c90f6e14ddfcb85b3e97f9885/memory_profiler.p...
Opengraph URL: https://github.com/pythonprofilers/memory_profiler/issues/397
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Is there a specific reason memory_usage return None when stream=True ?","articleBody":"Hi, I'm just wondering why when stream is not None, memory_usage return None ? \r\nhttps://github.com/pythonprofilers/memory_profiler/blob/a99a3c3b3c2eb01c90f6e14ddfcb85b3e97f9885/memory_profiler.py#L478C6-L478C6\r\n\r\nI'm using stream + retval so my script is crashing since i'm getting a None object when doing\r\n`mem_usage,res=memory_usage((func,args,kwargs),stream=True, retval=True`\r\n\r\nMy current fix is just removing the if stream : return None, but I would like to know if it will bite me later or if it's fine ? \r\nI'm really not familiar with memory usage so maybe there is a specific reason.\r\nThanks","author":{"url":"https://github.com/PveOnly","@type":"Person","name":"PveOnly"},"datePublished":"2024-01-12T15:12:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/397/memory_profiler/issues/397"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fa2d64bd-fa87-a20c-0400-b9fbb4f3bb50 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E2D6:16BD33:F113A:14DE3B:696F9FC2 |
| html-safe-nonce | 838cbc3fd720863101e6147982d951d2cbf2567e92e804e1dc5b289efa4e2fb3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkQ2OjE2QkQzMzpGMTEzQToxNERFM0I6Njk2RjlGQzIiLCJ2aXNpdG9yX2lkIjoiODA0Mjk1ODk1NTE2MTI5NjgzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7d9ad26721836832e74828208f71dc4ac9b515a0eec3489bc77ef4504b1fcf4c |
| hovercard-subject-tag | issue:2079068984 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pythonprofilers/memory_profiler/397/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d5f5628fa5ad51eac6d32f739ae1432da76700ed80984d30119abce30f562020/pythonprofilers/memory_profiler/issues/397 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d5f5628fa5ad51eac6d32f739ae1432da76700ed80984d30119abce30f562020/pythonprofilers/memory_profiler/issues/397 |
| og:image:alt | Hi, I'm just wondering why when stream is not None, memory_usage return None ? https://github.com/pythonprofilers/memory_profiler/blob/a99a3c3b3c2eb01c90f6e14ddfcb85b3e97f9885/memory_profiler.py#L4... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PveOnly |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0ca8d8c65612640b9a1a588b3eed68222ca723ed2d028b18fe81b28936d535eb |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonprofilers/memory_profiler git https://github.com/pythonprofilers/memory_profiler.git |
| octolytics-dimension-user_id | 32906038 |
| octolytics-dimension-user_login | pythonprofilers |
| octolytics-dimension-repository_id | 2575826 |
| octolytics-dimension-repository_nwo | pythonprofilers/memory_profiler |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2575826 |
| octolytics-dimension-repository_network_root_nwo | pythonprofilers/memory_profiler |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 95f60616ce2765d1114fe6da4af405a58c6d26d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width