Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

a little optimization

  • Loading branch information...
commit d94c367f2dcd993ddc58aca87a00d566d3166f4a 1 parent 6a58b5a
roberto@fierobecco authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 uwsgi.c
View
6 uwsgi.c
@@ -1931,12 +1931,7 @@ void log_request() {
if (uwsgi.memory_debug == 1) {
get_memusage();
#ifndef UNBIT
-#ifdef __APPLE__
fprintf(stderr,"{address space usage: %lld bytes/%lluMB} {rss usage: %llu bytes/%lluMB} ", uwsgi.workers[uwsgi.mywid].vsz_size, uwsgi.workers[uwsgi.mywid].vsz_size/1024/1024, uwsgi.workers[uwsgi.mywid].rss_size, uwsgi.workers[uwsgi.mywid].rss_size/1024/1024) ;
-#endif
-#ifdef __linux__
- fprintf(stderr,"{address space usage: %lld bytes/%lluMB} {rss usage: %llu bytes/%lluMB} ", uwsgi.workers[uwsgi.mywid].vsz_size, uwsgi.workers[uwsgi.mywid].vsz_size/1024/1024, uwsgi.workers[uwsgi.mywid].rss_size*PAGE_SIZE, (uwsgi.workers[uwsgi.mywid].rss_size*PAGE_SIZE)/1024/1024) ;
-#endif
#else
fprintf(stderr,"{address space usage: %lld bytes/%lluMB} ", uwsgi.workers[uwsgi.mywid].vsz_size, uwsgi.workers[uwsgi.mywid].vsz_size/1024/1024) ;
#endif
@@ -1978,6 +1973,7 @@ void get_memusage() {
}
fclose(procfile);
}
+ uwsgi.workers[uwsgi.mywid].rss_size = uwsgi.workers[uwsgi.mywid].rss_size*PAGE_SIZE;
#endif
#ifdef __APPLE__
/* darwin documentation says that the value are in pages, bot they are bytes !!! */
Please sign in to comment.
Something went wrong with that request. Please try again.