언어 설정

Menu
Sites
Language
Tizen Runtime

Are the Runtime info listed here:
https://www.tizen.org/runtime?langswitch=en
still applicable ?
If so how do you get the http://tizen.org/runtime/memory.available ?

Thanks
Manos

 

Responses

3 댓글
Alex Dem

Hi,
AFAIK it was possible for old Tizen just and not applicable now:
https://developer.tizen.org/development/tutorials/native-application/system/runtime-information-0 
Applicable keys are defined in enum runtime_info_key_e.
Alexey.

pius lee

There are no API for return avaiable system memory in tizen 2.3. (2.4 has it)

You can get system size and available size with sysinfo()

#include <sys/sysinfo.h>

size_t get_total_memory()
{
    struct sysinfo info;
	sysinfo(&info);
	return info.totalram * info.mem_unit;
}

size_t get_available_memory()
{
	struct sysinfo info;
	sysinfo(&info);
	return info.freeram * info.mem_unit;
}

 

Alex Dem

Hi,
Yes, looks like you could use new 2.4 sdk (I have checked with 2.3):
https://developer.tizen.org/development/preview
link to api:
https://developer.tizen.org/dev-guide/2.4b/org.tizen.native.mobile.apireference/group__CAPI__SYSTEM__RUNTIME__INFO__MODULE.html 
Alexey.