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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 24 07:32:10 PDT 2012


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





--- Comment #21 from Kangil Han <kangil.han at samsung.com>  2012-08-24 07:32:08 PST ---
(From update of attachment 160413)
View in context: https://bugs.webkit.org/attachment.cgi?id=160413&action=review

> Source/WebKit2/Shared/efl/WebMemorySamplerEfl.cpp:2
> + * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.

Do we need this?

> Source/WebKit2/Shared/efl/WebMemorySamplerEfl.cpp:81
> +            } else if (foundKeyName) {

When program comes in? Seems 'foundKeyName' always 'false' before if condition.

> Source/WebKit2/Shared/efl/WebMemorySamplerEfl.cpp:92
> +    ApplicationMemoryStats applicationStats;

I think we can put this line inside if condition.

> Source/WebKit2/Shared/efl/WebMemorySamplerEfl.cpp:109
> +    return applicationStats;

Then this would be 'return 0'

> Source/WebKit2/Shared/efl/WebMemorySamplerEfl.cpp:114
> +    String processName;

We would put this line inside if condition.

> Source/WebKit2/Shared/efl/WebMemorySamplerEfl.cpp:116
> +    sprintf(processPath, "/proc/%d/status", getpid());

snprintf?

> Source/WebKit2/Shared/efl/WebMemorySamplerEfl.cpp:124
> +    return processName;

Then 'return String()'

-- 
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