[Webkit-unassigned] [Bug 91214] [EFL] Add WebMemorySampler feature.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 27 23:43:53 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=91214





--- Comment #39 from JungJik Lee <jungjik.lee at samsung.com>  2012-08-27 23:43:54 PST ---
(From update of attachment 160897)
View in context: https://bugs.webkit.org/attachment.cgi?id=160897&action=review

>> Source/WebKit2/PlatformEfl.cmake:26
>> +    Shared/efl/WebMemorySamplerEfl.cpp
> 
> It seems that the implementation of the Sampler is not really EFL specific but rather Linux specific and perhaps instead belongs into Shared/linux/WebMemorySamplerLinux.cpp, for re-use by other ports. Then you can also get rid of the #if OS(LINUX) :)

EFL also has own ports. ex) mac, linux and windows. so even though I change the file name to WebMemorySamplerLinux.cpp, #if OS(LINUX) is still needed inside the cpp file for EFL. Or I should separate cmake file.

>> Source/WebKit2/Shared/efl/WebMemorySamplerEfl.cpp:83
>> +        while (!feof(fSystemMemoryStatus)) {
> 
> I'm inclined to say that it's more typical WebKit style to use early returns, i.e. instead of
> 
> FILE* f = fopen(...);
> if (f) {
>     ...
> }
> 
> using
> 
> FILE* f = fopen(...);
> if (!f)
>     return;
> ...
> 
> and therefore achieving a lower level of indentation and presumably more readable code :)

Thanks your help. I'll fix it now.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list