Closed Bug 810142 Opened 12 years ago Closed 12 years ago

Add a memory reporter for Channel::ChannelImpl

Categories

(Core :: IPC, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: n.nethercote, Unassigned)

References

Details

(Whiteboard: [MemShrink:P2])

This is usually the biggest unreported chunk in B2G now:

 Unreported: 1 block(s) in record 1 of 12980
  262,144 bytes (262,112 requested / 32 slop)
  1.92% of the heap (1.92% cumulative unreported)
    at 0x402C2AF: malloc (vg_replace_malloc.c:270)
    by 0x418E03B: moz_xmalloc (mozalloc.cpp:54)
    by 0x549A791: operator new[](unsigned long) (mozalloc.h:200)
    by 0x95C7A88: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so
.6.0.16)
    by 0x95C87FA: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
    by 0x95C88DF: std::string::reserve(unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
    by 0x95C8C0F: std::string::append(char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
    by 0x6FDF632: IPC::Channel::ChannelImpl::ProcessIncomingMessages() (ipc_channel_posix.cc:496)
    by 0x6FE03CE: IPC::Channel::ChannelImpl::OnFileCanReadWithoutBlocking(int) (ipc_channel_posix.cc:747)
    by 0x6FD0654: base::MessagePumpLibevent::OnLibeventNotification(int, short, void*) (message_pump_libevent.cc:213)
    by 0x6F8967B: event_process_active (event.c:385)
    by 0x6F898B8: event_base_loop (event.c:522)
    by 0x6FD0B79: base::MessagePumpLibevent::Run(base::MessagePump::Delegate*) (message_pump_libevent.cc:331)
    by 0x6F9AF04: MessageLoop::RunInternal() (message_loop.cc:215)
    by 0x6F9AE95: MessageLoop::RunHandler() (message_loop.cc:208)
    by 0x6F9AE6E: MessageLoop::Run() (message_loop.cc:182)
    by 0x6FAFE0B: base::Thread::ThreadMain() (thread.cc:156)
    by 0x6FD0EC0: ThreadFunc(void*) (platform_thread_posix.cc:39)
    by 0x9EE9E99: start_thread (pthread_create.c:308)
    by 0x9C16DBC: clone (clone.S:112)

On b2g-desktop64 I see it being 128 KiB or 256 KiB in every child process as soon as the child process starts.
Depends on: 810196
Whiteboard: [MemShrink] → [MemShrink:P2]
Bug 811596 will greatly reduce the need for this reporter, if it lands.
> Bug 811596 will greatly reduce the need for this reporter, if it lands.

It has landed.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.