Funzione Applications_GetTotalMemoryUsageInKBApplications_GetTotalMemoryUsageInKB function
Intestazione: #include <applibs/Applications. h>Header: #include <applibs/applications.h>
Ottiene l'utilizzo totale della memoria dell'applicazione di alto livello in KB.Gets the total memory usage of your high-level application in kibibytes. Si tratta dell'oggetto utilizzo totale della memoria fisica dell'app nel sistema, incluse le allocazioni del kernel, ad esempio i buffer per i socket, per conto dell'app o del server di debugtotal physical memory usage of your app on the system, including kernel allocations (such as buffers for sockets) on behalf of your app or the debugging server , restituito come valore non elaborato (in KiB).This is the utilizzo totale della memoria fisica dell'app nel sistema, incluse le allocazioni del kernel, ad esempio i buffer per i socket, per conto dell'app o del server di debugtotal physical memory usage of your app on the system, including kernel allocations (such as buffers for sockets) on behalf of your app or the debugging server, returned as a raw value (in KiB). I valori restituiti sono approssimativi e possono variare nelle diverse versioni del sistema operativo.Values returned are approximate and may vary across operating system versions.
static size_t Applications_GetTotalMemoryUsageInKB(void);
ErrorsErrors
Restituisce 0 se viene rilevato un errore e imposta sul errno
valore di errore.Returns 0 if an error is encountered and sets errno
to the error value.
- EAGAIN: informazioni temporaneamente non disponibili.EAGAIN: Information temporarily unavailable. La chiamata può funzionare se riprovare più tardi.The call may work if tried again later.
È errno
possibile specificare anche qualsiasi altro tipo di errore. tali errori non sono deterministici e non vi è alcuna garanzia che lo stesso comportamento venga mantenuto tramite gli aggiornamenti del sistema.Any other errno
may also be specified; such errors aren't deterministic and there's no guarantee that the same behavior will be retained through system updates.
Valore restituitoReturn value
Restituisce il numero di KB di memoria allocato o 0 in caso di errore, nel qual caso errno
viene impostato sul valore di errore.Returns the number of kibibytes of memory allocated, or 0 on error, in which case errno
is set to the error value.