Opened 15 years ago
Last modified 15 years ago
#1119 assigned enhancement
Function to obtain the TOL process memory usage
| Reported by: | Pedro Gea | Owned by: | Jorge |
|---|---|---|---|
| Priority: | high | Milestone: | Mantainance |
| Component: | System | Version: | head |
| Severity: | critical | Keywords: | |
| Cc: |
Description
Se solicita una función que permita obtener la memoris RAM utilizada por el propio proceso TOL.
Se adjunta un código que permite obtener esto en Windows apoyándose en la función GetPID que devuelve el indentificador del proceso:
Real GetRAM(Real void) {
Text ans = AnsSystem("tasklist /FI \"PID eq "<<GetPID(?)<<"\" /FO LIST");
Eval(Replace(Tokenizer(Tokenizer(ans, "\n")[6], " ")[7], ",", ""))
};
La función GetRAM utiliza una función "System" que devuelve la respuesta de la llamada al sistema. Véase #1118
Change History (3)
comment:1 Changed 15 years ago by
| Owner: | changed from Víctor de Buen Remiro to Jorge |
|---|---|
| Status: | new → assigned |
comment:2 Changed 15 years ago by
| Component: | Kernel → System |
|---|
comment:3 Changed 15 years ago by
| Priority: | normal → high |
|---|---|
| Severity: | normal → critical |
Note: See
TracTickets for help on using
tickets.

TOL es un sistema multiplataforma por lo que hay que tender a dar soluciones que funciones de forma independiente del sistema operativo. Redirecciono este ticket a Jorge por ese motivo.