Benoît Dejean
01a56e2e30
Use g_ascii_isspace instead of isspace because the later is slower and we
...
only need to deal with ascii.
2017-01-22 10:45:26 +01:00
Benoît Dejean
7afc81f99d
Do not cache getpagesize(), it is already.
2017-01-22 10:45:26 +01:00
Christian Persch
f41ab3beed
Don't printf a string directly but use %s instead
...
Bug #581725 .
Signed-off-by: Benoît Dejean <benoit@placenet.org >
2009-05-08 14:22:17 +02:00
Benoît Dejean
35a0ac4f2c
r2790 | bdejean | 2009-01-12 19:39:44 +0100 (lun 12 jan 2009) | 3 lines
...
Fixed read(2) usage.
Closes #468495 .
svn path=/trunk/; revision=2801
2009-02-16 22:57:05 +00:00
Benoît Dejean
dc5da30913
Fixed parsing of big /proc/stat for uptime.
...
svn path=/trunk/; revision=2741
2008-04-28 16:20:56 +00:00
Benoît Dejean
a02e213373
Fixed ;;. Closes #521084 .
...
Fixed ;;.
Closes #521084 .
svn path=/trunk/; revision=2734
2008-04-05 17:13:28 +00:00
Benoît Dejean
35fab4d9aa
Smarter smaps parsing.
...
See #518145 .
svn path=/trunk/; revision=2713
2008-02-24 17:52:24 +00:00
Benoît Dejean
871f300a2c
Added a bufsiz argument to file_to_buffer().
...
Increased read buffer size in get_sysinfo().
svn path=/trunk/; revision=2637
2007-08-26 16:05:36 +00:00
Benoît Dejean
3eb958dc6c
Manual commit from my local git-svn which is broken :/
...
svn path=/trunk/; revision=2578
2007-05-13 08:20:10 +00:00
Benoît Dejean
b411ee115f
Replaced two strstr by a hand-written loop in this critical code.
...
2007-01-11 Benoît Dejean <benoit@placenet.org >
* glibtop_private.c: (get_scaled):
Replaced two strstr by a hand-written loop in this critical code.
svn path=/trunk/; revision=2544
2007-01-11 20:28:02 +00:00
Benoît Dejean
d497c25081
New has_sysfs function to avoid stating over and over '/sys' on each
...
2006-07-27 Benoît Dejean <benoit@placenet.org >
* glibtop_private.c: (has_sysfs):
* glibtop_private.h:
* netload.c: (glibtop_get_netload_s):
* open.c: (set_linux_version):
New has_sysfs function to avoid stating
over and over '/sys' on each netload call.
2006-07-27 09:23:32 +00:00
Benoît Dejean
806a816026
Fixed server->ncpu usage (SMP handling). Need more testing.
...
* cpu.c: (glibtop_get_cpu_s):
* glibtop_private.c: (get_scaled), (check_cpu_line):
* glibtop_private.h:
* open.c: (glibtop_open_s):
* proctime.c: (glibtop_get_proc_time_s):
Fixed server->ncpu usage (SMP handling). Need more testing.
2005-12-13 09:15:49 +00:00
James Henstridge
aa5ac8fc10
remove unused file.
...
2005-12-12 James Henstridge <james@jamesh.id.au >
* doc/auto-macros.texi.in: remove unused file.
* doc/libgtop2.texi: don't include auto-macros.texi.
* doc/Makefile.am: don't build auto-macros.texi, since none of its
macros are used in the documentation any more.
* include/glibtop/global.h: don't include <config.h> from headers.
* .../*.c: make sure <config.h> is the first thing included.
* acinclude.m4: m4_include() libgtop-sysdeps.m4 rather than
inlining it.
* acinclude.m4, libgtop-sysdeps.m4: use third argument to
AC_DEFINE() to set the comment.
* configure.in: modernise a bit.
* acconfig.h: remove file, since it is deprecated
* autogen.sh: require automake 1.9 instead of 1.4.
2005-12-12 09:38:15 +00:00
Benoît Dejean
ac3ad6d2aa
Removed 1 g_return_*.
...
* glibtop_private.c: (read_boot_time):
Removed 1 g_return_*.
2005-10-29 19:23:50 +00:00
Benoît Dejean
4efcfb2cb3
Cached getpagesize().
...
* glibtop_private.c: (get_page_size):
* glibtop_private.h:
* procmem.c: (glibtop_get_proc_mem_s):
* procsegment.c: (glibtop_get_proc_segment_s):
Cached getpagesize().
2005-07-22 19:20:39 +00:00
Benoît Dejean
16e0c943b2
Cached boot_time.
...
* glibtop_private.c: (read_boot_time), (get_boot_time): Cached boot_time.
2005-07-07 19:34:18 +00:00
Benoît Dejean
b6a10fd8f7
Made some checks solaris only.
...
* configure.in: Made some checks solaris only.
2005-07-05 23:05:20 +00:00
Benoît Dejean
06fb19b5c6
Ensures buffer is 0-terminated.
...
* glibtop_private.c: (try_file_to_buffer): Ensures buffer is 0-terminated.
2005-06-14 22:17:49 +00:00
Benoît Dejean
703a17f3f0
Uninlined.
...
* glibtop_private.c: (skip_token):
* glibtop_private.h: Uninlined.
2005-01-16 11:16:19 +00:00
Benoît Dejean
2fa0dc1cd8
Added Added Removed
...
* Makefile.am:
* cpu.c:
* fsusage.c:
* glibtop_private.c: (get_scaled), (try_file_to_buffer),
(file_to_buffer): Added
* glibtop_private.h: Added
* glibtop_server.c: Removed
* glibtop_server.h:
* loadavg.c:
* mem.c:
* netload.c:
* open.c:
* prockernel.c:
* procmem.c:
* procsegment.c:
* procsignal.c:
* procstate.c:
* proctime.c:
* procuid.c:
* swap.c:
* sysinfo.c:
* uptime.c: Moved linux impl utils function from glibtop_server.* to
glibtob_private.* because glibtop_server.h is a public header.
2004-11-28 01:32:55 +00:00