diff options
| author | P. Christeas <p_christ@hol.gr> | 2010-11-16 18:20:25 +0200 |
|---|---|---|
| committer | P. Christeas <p_christ@hol.gr> | 2010-11-16 18:20:25 +0200 |
| commit | cfdd34d511aeda2b8937a19aaeb4948c16d76665 (patch) | |
| tree | f8420904ccfa75b69fbf45b32084ad00bf9d7c63 | |
| parent | 3e32b3406019c85a8f84f9f2402b35aac85818e3 (diff) | |
web_services: implement os timestamp query.
The os user and sys elapsed times are very useful for performance metrics,
they can tell us how much did the openerp server try for some operation.
Conflicts:
bin/service/web_services.py
bzr revid: p_christ@hol.gr-20101116162025-go5lx4qs658pt7t5
| -rw-r--r-- | bin/service/web_services.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/service/web_services.py b/bin/service/web_services.py index df42d8736ce..7054be9597e 100644 --- a/bin/service/web_services.py +++ b/bin/service/web_services.py @@ -385,7 +385,7 @@ class common(_ObjectService): 'login_message','get_stats', 'check_connectivity', 'list_http_services']: pass - elif method in ['get_available_updates', 'get_migration_scripts', 'set_loglevel']: + elif method in ['get_available_updates', 'get_migration_scripts', 'set_loglevel', 'get_os_time']: passwd = params[0] params = params[1:] security.check_super(passwd) @@ -567,6 +567,9 @@ GNU Public Licence. def exp_check_connectivity(self): return bool(sql_db.db_connect('template1')) + + def exp_get_os_time(self): + return os.times() common() |
