aboutsummaryrefslogtreecommitdiffstats
path: root/ddms
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support for Select All & Copy Paste.Siva Velusamy2011-09-283-4/+87
| | | | Change-Id: I4b41b6ee5a7a5600ca3b37d3addf1dce7d1e072a
* Construct NativeStackCallInfo with full symbol address.Siva Velusamy2011-09-283-15/+18
| | | | | | | | | Addr2line constructs NativeStackCallInfo for a symbol using its offset within the library as the address. This patch is a minor change to make it use the address in the executable instead of the offset in the library. Change-Id: I3e3e960f6c5abefac83b670e3ab23a78c57a8e56
* Check for relevant stack frame using source library.Siva Velusamy2011-09-271-45/+37
| | | | | | | | In a stack trace, skip all frames from libc and from methods matching malloc/realloc/calloc etc to identify the source frame where heap memory is allocated. Change-Id: Ia8661c7ff58b3db502c92b2f48819c3219861a73
* Update default addr2line to use.Siva Velusamy2011-09-271-1/+1
| | | | Change-Id: I17a1b29039e50e0256f37519b3fd8781b88f5e39
* Append prefix "Z" only for Zygote allocations.Siva Velusamy2011-09-232-2/+2
| | | | | | | Cross checked with vendor/google/tools/nativeheapdump and made sure that output of both tools match. Change-Id: I129791ec42e7c0f4197fd59f687477b3d82e4d20
* Provide ability to view just the new allocations.Siva Velusamy2011-09-231-17/+68
| | | | | | | | Rather than viewing the entire snapshot, users can now view just the allocations that have happened since the previous snapshot. Change-Id: I6115fdcd3928db775d8b77c078c9fce2539779ac
* Override hashCode.Siva Velusamy2011-09-231-0/+19
| | | | | | equals() was overridden previously, but not hashCode. Change-Id: I82371f853f1ab23b081ed78fc54f5e66ecccbe3e
* Merge "Extract DDMS PreferenceStore."Raphael2011-09-232-77/+83
|\
| * Extract DDMS PreferenceStore.Raphael2011-09-222-77/+83
| | | | | | | | | | | | | | | | | | | | | | | | Splits DDMS PreferenceStore management in a separate class and add the methods we need for ADT first-time wizard. Various pieces of DDMS access the pref store via the PrefsDialog. This could use a cleanup eventually later. Change-Id: Ie1e90b9a4d7e4c9b057b506eae239ba7e8ece37d
* | Add support for filtering out zygote allocations.Siva Velusamy2011-09-225-15/+114
| | | | | | | | | | | | | | Maintain separate list of non zygote allocations and switch to displaying the filtered list based on user input. Change-Id: Ib1fbbcb2ada55255a2f9dad02f3cf1dea18cbeda
* | Show percentage of total heap size for each row.Siva Velusamy2011-09-222-5/+34
| | | | | | | | Change-Id: Iabfb5f246ca5c22cf0097300e66ba128b5174562
* | Make library to be the first column in the details view.Siva Velusamy2011-09-222-11/+11
| | | | | | | | | | | | | | | | | | | | | | There are two reasons for this change: 1. When allocations are grouped by library, it is nice to have the library in the first column immediately signifying the grouping. 2. The first column is always left aligned on some platforms (Linux). This is not the right alignment for showing numbers (they should be right aligned). Change-Id: I36a3fef17265da41e3e6d709f38d3fd6e28d233b
* | Support grouping of allocations by library.Siva Velusamy2011-09-226-40/+367
| | | | | | | | | | | | | | | | | | | | | | | | Currently, all allocations are displayed as a list sorted by the size of the allocation. This patch set enables the toolbar checkbox to group the list of allocations by library. When this is checked, the display refreshes to show a tree with the root nodes being libraries, and their children being the list of allocations made from that library. Change-Id: Ibb61242db8c6e58d300f767f0b2b11b6b7a9530d
* | Add support for user specifying search paths in the UI.Siva Velusamy2011-09-222-10/+89
| | | | | | | | | | | | Fix Addr2line to use the search path to locate binaries. Change-Id: I5ba901144faa70d4507d9286ade1cc49828d41ac
* | Findbugs fix: Use Character.toString()Siva Velusamy2011-09-221-2/+2
|/ | | | Change-Id: I7a50c09b3cc7028caef2302154bfe6fea8bef556
* Resolve addresses to symbols in a separate thread.Siva Velusamy2011-09-212-2/+103
| | | | | | | | After retrieving a heap dump, start a thread to resolve all the addresses present in the dump. Refresh the UI with the resolved symbols once the process is complete. Change-Id: Iac2d24e91685b6c4e10985b3dfce00e79e1db10b
* Display stack trace for selected Heap Allocation.Siva Velusamy2011-09-208-36/+152
| | | | | | | Minor changes in a few other places to return List's instead of arrays. Change-Id: I25ddc25ebc1c91677d16e9d77dc0f8a51022bc1b
* New implementation of native heap - layout only.Siva Velusamy2011-09-209-3/+707
| | | | Address resolution to symbols to come in future CL's.
* When requesting NHGT, disable NHSG.Siva Velusamy2011-09-201-1/+1
| | | | | | | | | | | NHGT = Native Heap GeT NHSG = Native Heap Segment Data Currently, ddmlib doesn't do much processing of the NHSG data anyway. Adding NHSG causes a stream of segment data updates sent from the client, which is then ignored. Change-Id: Ifb95e9a744cd5c733593abb1bb83446796e7b50a
* Use foreach instead of iteratorSiva Velusamy2011-09-202-10/+4
| | | | Change-Id: I06c3f52313ae06ff2b51cbe6b302409bd4efca5b
* Update year in copyright notices to 2011.Siva Velusamy2011-09-161-1/+1
| | | | Change-Id: Ibe1042437e4f320a034be176b0b8efc7d205f79b
* Merge "Allow custom run name in IRemoteAndroidTestRunner."Brett Chabot2011-09-152-3/+20
|\
| * Allow custom run name in IRemoteAndroidTestRunner.Brett Chabot2011-09-142-3/+20
| | | | | | | | Change-Id: I6a332ea16243f43d080e4d88e914d6b2e940ce97
* | Use default system font size.Siva Velusamy2011-09-141-3/+19
|/ | | | | | | And make sure that the default logcat table row height is high enough for the currently used font. Change-Id: Ibfabb05b92add42c6d0acb2b79668f93b833057f
* Fix scroll behavior on Win 7.Siva Velusamy2011-09-131-1/+6
| | | | | | | The windows scrollbar never actually touches the bottom of the scroll area. Compensate for that in the shouldScrollToLatestLog() function. Change-Id: If3178d0519cac262d9208d3cd486588f895936ff
* Do not add a border for the filters toolbar.Siva Velusamy2011-09-121-1/+1
| | | | Change-Id: I5e3f5f859905b77e9a2af7d38d970ff6b8e3172b
* Create logcat table with SWT.VIRTUAL.Siva Velusamy2011-09-092-140/+83
| | | | | | | | | | | Without SWT.VIRTUAL, the UI responsiveness goes down significantly when large numbers of logcat messages are received. Unfortunately, enabling it causes SWT to make all rows to be of the same height, thereby clipping any long messages. In such a case, the complete message can be viewed in the tooltip. Change-Id: I78d6701ccac6ad94675e1ed707700eabfe34bce8
* Make search case insensitive by default.Siva Velusamy2011-09-012-3/+33
| | | | Change-Id: Ib09281dea211cffbd5c6f8352c7002f95e99f019
* Display with transient filter selected on logcat errors.Siva Velusamy2011-09-014-2/+88
| | | | | | | | When a error message is detected on logcat, display logcat view but with a filter for the application selected so that only the relevant messages are displayed. Change-Id: Ic84c59b63519302eac286ae243b228a305288b3d
* Activate logcat view at appropriate times.Siva Velusamy2011-09-012-7/+8
| | | | | | | | | - When applications are launched (run/debug) on a device, start monitoring the logcat output on that device. - If some important message comes across, and the logcat view is not currently displayed, then activate it. Change-Id: Ib88973badde4cb2860379129dfe0eb03a3f955dc
* Move creation of LogCatReceiver to a separate factory.Siva Velusamy2011-09-017-66/+113
| | | | | | | | | | | | | | | | | Until now there was only one instance of LogCatReceiver. This instance would listen to the logcat output from the currently selected device. This patch modifies this behavior to make one LogCatReceiver responsible for listening to only one device. If there are multiple devices, then multiple instances of LogCatReceivers are instantiated. The instantiation is also moved to a separate factory. This modification allows for the scenario where the LogCatReceiver's can be instantiated independent of the UI, and are reused by the UI whenever needed. Change-Id: I46008cbd5ee41880372a62e7e09634ce2d2fc122
* Reduce the number of UI refreshes of the logcat table.Siva Velusamy2011-09-011-10/+29
| | | | | | | | | | | | | Currently, every time a logcat message is received, the UI is refreshed. If multiple messages are received in close succession, multiple refreshes are enqueued to the UI thread to be run. This results in the UI spending all its time refreshing the table. This patch adds a refresh to the queue only if there are no pending refreshes. We can do so since any refresh automatically picks up the latest state of the logcat messages received. Change-Id: I2d9df679299710e54986c86a3610d3546924aba8
* Findbugs cleanup.Tor Norbye2011-08-292-7/+9
| | | | Change-Id: I82229e75e5a33baa690ea6b0993a4d407713e7e5
* Make the logcat fifo size user configurable.Siva Velusamy2011-08-235-19/+88
| | | | | | | Add a preference where users can set the size of the message list. Defaults to 1000. Change-Id: Ia888c3802f07607274bfbdca0ade8fbda009ba55
* Use SWT Label's instead of Link's for proper wrap behavior.Siva Velusamy2011-08-231-2/+5
| | | | | | | | | On Mac, Link widgets to not enforce SWT.WRAP style. As a result, text is just clipped instead of being wrapped. Split the privacy policy text into two separate components - one with the text, and one with the link, and use Label's for the longer text content. Change-Id: Ic667b9ec62c0ce26c43611b97e0bbdc89dbc68d6
* Open SDK stats dialog from an existing shell.Siva Velusamy2011-08-223-7/+17
| | | | | | | | | | | | | | This patch addresses Issue #15267. The primary issue is that the SDK stats permission dialog was opened from a separate Job, and this dialog shows up when the user opens the preference page for the first time. Since both of them happen to be modal dialogs, the behavior is inconsistent, and many times results in a blocked UI. The patch fixes this issue by opening up the stats dialog as a child of the preference page dialog within ADT, and as a child of a new shell within DDMS. Change-Id: I8c9ed9e9bbfac855435690f287b4f60975f336fb
* Merge "Change way we report Eclipse version in stat ping."Raphael Moll2011-08-221-2/+2
|\
| * Change way we report Eclipse version in stat ping.Raphael Moll2011-08-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | This reverts the way Change I14dba0dd was sending the Eclipse version. Instead of passing a new attribute, we reuse the existing "app=>version" format, with a specific app name of "eclipse". Since versions are reformated in 4 parts, it will report something like "3.5.0.0" (only major+minor and 2 zero sub parts). We don't send more details than that (e.g. Milestones). Change-Id: Id01e3ed6b96ea4ce4e1b4f643d08a050291a6e7b
* | Make variable/method names consistent.Siva Velusamy2011-08-198-28/+28
|/ | | | | | | | Always use mixed case for pid: change PID to Pid. Rename getPidString() to getPid(). All changes are syntactical only.. Change-Id: I85309d46ff1a14510271f6402debdc1e17747928
* Add support for filtering by application name.Siva Velusamy2011-08-196-34/+132
| | | | Change-Id: I07be20ac89108c181cfb2793c90f5cf697a304e2
* Store source application name in logcat messages.Siva Velusamy2011-08-198-21/+176
| | | | | | | | | | logcat only provides the pid of the application that generated the message. Map the pid back to the application's name, and store it in the parsed logcat message. Modify the logcat view to display the app name in addition to the pid. Change-Id: I939ed9ca2389412473dc614bd2e0e1d302295924
* Dispose of font properly.Siva Velusamy2011-08-191-0/+4
| | | | Change-Id: Ic00711ebfe13c9f4674e0570bd3dd28f35127d62
* Add support for Select All and Copy to Clipboard actions.Siva Velusamy2011-08-182-5/+66
| | | | Change-Id: Idbf3bc093f2a049b5e0e0cd9605a6f8bdc8f7723
* Wrap messages based on font size and col width.Siva Velusamy2011-08-182-21/+78
| | | | | | | | Rather than wrapping messages at a certain size, detect the current width of the column, and wrap them if the message will exceed that width. Note that the width depends on the font used. Change-Id: I26441c5b4b7fe3e6ab00b9287c4013493e2352f8
* Merge "Add ability to pass options to IDevice.installPackage."Brett Chabot2011-08-182-12/+23
|\
| * Add ability to pass options to IDevice.installPackage.Brett Chabot2011-08-162-12/+23
| | | | | | | | Change-Id: I79328a3ab0c3e113103615b11d9ec85726513adc
* | Use PreferenceConverter to set default font.Siva Velusamy2011-08-171-3/+7
| | | | | | | | | | | | Also use platform specific font. Change-Id: I0bc50c2c79c8e0e21c779ad71f3b11b8c03e99d8
* | Fix issue setting font, and invalid selection on Mac.Siva Velusamy2011-08-171-3/+16
| | | | | | | | | | | | | | | | Font: fontdata should be created using PreferenceConverter.getFontData List selection: On Mac, selecting a list widget outside the list contents behaves differently than on Linux Change-Id: I696996c8b92af8211dd767f5dd1552c34b68c327
* | Make new logcat view to be the default in DDMS.Siva Velusamy2011-08-171-3/+3
| | | | | | | | | | | | | | The old view can be activated by setting the env variable ANDROID_USE_OLD_LOGCAT_VIEW. Change-Id: I006aaba26f323b12b6da70f22f8584ad76fb5041
* | Goto source when user double clicks on stack trace.Siva Velusamy2011-08-174-0/+188
| | | | | | | | Change-Id: Ia2693424f0106fb3aa1724c211a8e1273f3a0c28