Gihun Chang [Tue, 12 Jul 2016 08:09:01 +0000 (17:09 +0900)]
[FIX] Call Unified API, AnalyzerUtil.setPlatformSDK(), to set platform DA on GUI.
+ Resolve merge conflict to http://suprem.sec.samsung.net/gerrit/#/c/81867/
Conflicts:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/page/BaseView.java
Change-Id: Ie5349dc04ea4b60d739738e0f5dbcd779e43ef4c
Maria Guseva [Thu, 14 Jul 2016 13:36:07 +0000 (22:36 +0900)]
Merge "SRADA-908: Merge remote-tracking branch 'origin/ui_e4_migration' into 'sdk_merge'" into sdk_merge
Dmitriy Nikiforov [Wed, 13 Jul 2016 18:29:31 +0000 (21:29 +0300)]
SRADA-756: Fixed DIBS multibuild error
Changed Unicode-specific double quotes to escaped standard double quotes
in one of StartCommand's user messages.
Change-Id: I3dc102fe3beee56dc21eacab0540a44be86587ca
Signed-off-by: Dmitriy Nikiforov <d.nikiforov@partner.samsung.com>
jaeyong lee [Thu, 14 Jul 2016 06:25:45 +0000 (15:25 +0900)]
SRADA-908: Merge remote-tracking branch 'origin/ui_e4_migration' into 'sdk_merge'
Conflicts:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/handlers/UIAction.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/UserErrorWarningLabels.properties
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/shortcut/ShortCutKeyBindingHandler.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/page/BaseView.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/page/MenuBar.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/setting/SettingDialog.java
Change-Id: I9c779c07cf946a97962e8c7c90e94a60cb626ac8
Maria Guseva [Wed, 13 Jul 2016 12:38:30 +0000 (15:38 +0300)]
SRADA-863: Fixed saving of page list in CLI mode.
In CLI mode FlatFeatures are not supported yet. Thus page list must be defined
based on selected Features, not FlatFeatures as in GUI. Also restored
selecting template removed in previous commit.
Change-Id: I9ddcc663c00f68c8e7f997696a21ab0723a52a02
p.privalov [Tue, 5 Jul 2016 11:19:14 +0000 (14:19 +0300)]
SRADA-863 Cli saves in zip now. GUI save\load functions use default file path.
1) Cli saves trace to zip with standart name in standart save folder
This trace is in same format as GUI trace, it can be opened in GUI.
2) Updated 'feature' configuration file in order to support chart lists.
3) GUI saves dialog and open dialog now opens at default location
tizen-sdk-data/dynamic-analyzer/save.
4) project.save() and DataManagerRegistry.saveData() activity moved to
CommandAction.saveToZip().
Change-Id: I2a3cdd965d25a6d30de977851da37c58004a8da4
jaeyong lee [Tue, 12 Jul 2016 06:43:51 +0000 (15:43 +0900)]
[SRADA-893] Add shortcut feature
Conflicts:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/page/BaseView.java
Change-Id: Ic0ec8a4c9e42e3646ec87a297df0287b31254d9d
ggh1933.go [Thu, 7 Jul 2016 02:39:50 +0000 (11:39 +0900)]
[FIX]Fix windows locked long time when Launching from IDE and Duplicated ToolBar updating skip.
Change-Id: If948b9bb5c033ec0325889d7d11942a2ff870533
ggh1933.go [Wed, 6 Jul 2016 00:42:05 +0000 (09:42 +0900)]
[SRADA-880]Fix : Add jdt.core plugin for debug in mars Eclipse
Change-Id: I71edfc2bb24c14e2c8243b323da2f587c64f29c3
Maria Guseva [Tue, 12 Jul 2016 11:02:18 +0000 (14:02 +0300)]
SRADA-903: Removed '-c custom template' CLI option as not planned to be supported.
TracingArgumentsTest and TracingArgumentsParserTest updated correspondingly.
TracingArgumentsTest.isValid_ExclusiveOpts test removed as unrelevant anymore.
Change-Id: Iaa03813be3cee772564738b6925333272f42c910
Maria Guseva [Tue, 12 Jul 2016 10:00:37 +0000 (13:00 +0300)]
SRADA-903: Disabled '-i tracing duration' CLI option as not supported yet.
TracingArgumentsTest and TracingArgumentsParserTest updated correspondingly.
InvalidDuration tests set as Ignore until option is added.
Change-Id: If80f8c174845c073796b18305c25fe211500f1cf
Maria Guseva [Mon, 20 Jun 2016 07:44:54 +0000 (10:44 +0300)]
SRADA-784: Added unit test for PageInfoRegistry.convertPageIDtoPageName().
Change-Id: I0678731e8ef4c311a0dedbf1dfcabe42c0bcd2f3
dongkyu6 lee [Tue, 12 Jul 2016 07:27:57 +0000 (16:27 +0900)]
[HOTFIX] enable Platform DA
- enable string : Platform Dynamic Analyzer|Y (config/setting)
Change-Id: I3ff2b06d947b014ddb4c3ec4e4db1c33ea2999e9
Maria Guseva [Mon, 11 Jul 2016 16:14:14 +0000 (19:14 +0300)]
SRADA-848: Restore unit tests sources missed after merge commit.
Tests were unintentionally deleted with merge commit:
fdef1eee000746e9eccbe71a80bbf7501407cad0
Change-Id: I8a32bfe857d0ca552b087c94fc3cb57737e862bd
jaeyong lee [Tue, 5 Jul 2016 04:14:03 +0000 (13:14 +0900)]
[SRADA-801] Add dimension switch button at OpenGL, Thread page and change some image resources
Change-Id: I56c3acb0bb42229eb7ffe110374c94d27a8f5609
Maria Guseva [Thu, 7 Jul 2016 13:25:21 +0000 (16:25 +0300)]
SRADA-889: Unified the way to check if DA is in platform mode.
* AnalyzerUtil.setPlatformSDK() - new method extracted from AnalyzerPlugin.start()
* CliInternals - use AnalyzerUtil.setPlatformSDK() in static section after
UI mode is set.
Change-Id: Ib168a9051c2a7bdafabaf98a23f242af389fe5c5
Dmitriy [Thu, 7 Jul 2016 17:35:23 +0000 (20:35 +0300)]
SRADA-680: Added missing 'flatfeature' configuration in DA tests
Also, fixed:
* org.tizen.dynamicanalyzer classpath for Eclipse build
* SettingDataManagerTest to work in CliMode
Change-Id: I623b4ba090f230304b292ee3967142f9bc4511c7
Dmitriy Nikiforov [Thu, 9 Jun 2016 14:20:57 +0000 (17:20 +0300)]
SRADA-759: Removed unnecessary artifacts from Maven build
Part of files is removed by Maven executing instructions from
dynamicanalyzer.p2.inf file. And other part that cannot be removed by Maven
is deleted by build.linux script in __cleanup function.
Change-Id: I093af51fa48948cb8fd1c920340ca949aff5aba1
Maria Guseva [Fri, 8 Jul 2016 13:50:41 +0000 (22:50 +0900)]
Merge "SRADA-848: Merge remote-tracking branch 'origin/ui_e4_migration' into HEAD" into sdk_merge
Dmitriy [Thu, 7 Jul 2016 12:18:17 +0000 (15:18 +0300)]
SRADA-848: Merge remote-tracking branch 'origin/ui_e4_migration' into HEAD
Change-Id: Id6da5e718b89f293fdfe45684740e1e37a433696
dongkyu6 lee [Tue, 5 Jul 2016 07:19:22 +0000 (16:19 +0900)]
[SRADA-854][SRADA-862] Add a Save popup window and adjust UX guide on DADialog
- Refactoring DADialog
- Change icon, size, color on DADialog
- Add a dailog when there is unsaved data
Change-Id: Iec991ea9f26b00b921f80a7fcd5d8eac63e4081e
dongkyu6 lee [Wed, 6 Jul 2016 00:22:36 +0000 (09:22 +0900)]
[SRADA-853] Apply new string
Change-Id: I22c906180523244e388e34e4a0483e57f45db654
p.privalov [Fri, 24 Jun 2016 13:41:21 +0000 (16:41 +0300)]
SRADA-782: Tracing time is calculated by TracingProcess.
Tracing time printed by StopCommand.
TimerClock now works with milliseconds.
Change-Id: I41cb26d7623a9a18887462ff571122dfaa211014
dongkyu6 lee [Wed, 6 Jul 2016 01:56:45 +0000 (10:56 +0900)]
[SRADA-869] Add expand button on memory charts
Change-Id: I6111583e2bd4072cdfaacdaf28f2a0d0aa99dcd5
ggh1933.go [Thu, 30 Jun 2016 07:44:07 +0000 (16:44 +0900)]
[SRADA-865]Fix : Dlog set range by Analysis clicked between markers, don't scroll move shortly.
- Before, updateTable by super, make setting scroll to Selection Start time. so updated Scroll shortly.
- fix : return loop when get Set Scroll index, duplicated logics delete.
Change-Id: I1e4dcc89e00bd516284f331b44aebdeb6275d6a7
ggh1933.go [Tue, 5 Jul 2016 05:33:27 +0000 (14:33 +0900)]
[SRADA-880]FIX : abnormal menubar disabled.
- +forced disabled.
Change-Id: Ibe542eaf4231373a7d85ee479e35fa17b604fac4
ggh1933.go [Tue, 5 Jul 2016 04:48:49 +0000 (13:48 +0900)]
[SRADA-880]FIX : resolve unpack plugins conflict.
Change-Id: Ic1b4146172b74a61e01cafee8216d47f70027c29
jaeyong lee [Tue, 5 Jul 2016 03:51:05 +0000 (12:51 +0900)]
[HOTFIX] Resolve build error
Change-Id: Ic5633801813ccbcd12bcb31e50dadd4fcd3d16d4
ggh1933.go [Tue, 5 Jul 2016 02:00:07 +0000 (11:00 +0900)]
[SRADA-880] Merge MAVEN,RCP4 with Latest ui_e4_migration
- FIX : macos build, don't reference old version
Change-Id: I74becbf8c6f60937ac2a8812600f9b0dada2989d
Maria Guseva [Mon, 4 Jul 2016 13:32:09 +0000 (22:32 +0900)]
Merge "Merge remote-tracking branch 'origin/ui_e4_migration' into sdk_merge" into sdk_merge
Gihun Chang [Fri, 1 Jul 2016 09:51:06 +0000 (18:51 +0900)]
Merge remote-tracking branch 'origin/ui_e4_migration' into sdk_merge
Change-Id: If6764c8f26c818d500744209261c8b0d95376b05
Maria Guseva [Thu, 30 Jun 2016 05:21:52 +0000 (08:21 +0300)]
SRADA-848: Fix StartTraceManager to work in CLI mode.
Issue occured after merge with ui_e4_migration branch.
Change-Id: Iad6cb81d83832c6bb3b8744199c2e11f57910a77
Gihun Chang [Thu, 2 Jun 2016 05:24:38 +0000 (14:24 +0900)]
[FIX] Remove eclipse-indigo dependency
Change-Id: I3e66a748ceea4521bc6e6de7f619d041fcf57c1e
Gihun Chang [Thu, 2 Jun 2016 04:22:13 +0000 (13:22 +0900)]
[SRADA-680] temporarly disable the unit testing until success tc is prepared
Change-Id: I79c2bef6d16363d646099e28443f040e4ad7ab4a
Gihun Chang [Thu, 2 Jun 2016 04:06:54 +0000 (13:06 +0900)]
[SRADA-680] Move flatfeature file from workbench to workbench.product
Change-Id: I51f1440a756eb8645823502d9d22dab7bbadbbc5
Dmitriy Nikiforov [Wed, 18 May 2016 15:25:22 +0000 (18:25 +0300)]
SRADA-680: Maven copies 'config' folder to built product
'config' directory contains configuration files that may be used by built
product, so they should be copied to resulting archive.
Moved this directory from 'org.tizen.dynamicanalyzer.workbench' project to
'resources' directory in 'org.tizen.dynamicanalyzer.workbench.product' and
updated product's pom.xml to copy resources.
Change-Id: Idbff6b2548576a45c315e582947c6417b7fb2014
Dmitriy Nikiforov [Wed, 18 May 2016 15:13:07 +0000 (18:13 +0300)]
SRADA-680: Separated 'org.tizen.dynamicanalyzer.test' project
Moved test sources and libs from org.tizen.dynamicanalyzer to new
org.tizen.dynamicanalyzer.test project. It is necessary to compile tests
with Maven.
Also, moved resources for SettingDataManagerTest to 'resources' folder.
Change-Id: Ia43f0e67598b31fc5d3d781debe9d6ce06265211
Dmitriy Nikiforov [Wed, 18 May 2016 14:42:56 +0000 (17:42 +0300)]
SRADA-680: Separated 'org.tizen.dynamicanalyzer.common.test' project
Moved test sources and libs from org.tizen.dynamicanalyzer.common to new
org.tizen.dynamicanalyzer.common.test project. It is necessary to compile
tests with Maven.
Change-Id: Ia8e134a59a6e49671a3dbe3c63bd5cf6764c6b09
Dmitriy Nikiforov [Fri, 13 May 2016 18:17:56 +0000 (21:17 +0300)]
SRADA-680: Updated DIBS build script to use maven
Changes:
* updated some build paths
* removed no more necessary functions:
- __copy_build_sources
- __copy_dependency_plugins
- __make_ant_properties_files
- __copy_necessary_binaries
- __unzip_plugin_pack
* added backup of product information files in __set_product_about_info
* added restoration of product information files in __restore_product_info
* modified __clean_build_environment to remove only built project
* removed copying of 'config' directory from 'packaging_bfiles'
Change-Id: I1a3fde0816c73b7bed14ae607b8b88f5fda03925
Dmitriy Nikiforov [Tue, 12 Apr 2016 18:13:01 +0000 (21:13 +0300)]
SRADA-680: Port Dynamic Analyzer to Maven build
Maven uses Tycho plugins to build and test eclipse plugins, features and
products and tycho-pomless extension automaticaly generates configurations
for subprojects based on parent pom.
Target OS, WS and architecture can be set via 'envOs', 'envWs' and 'envArch'
properties.
Build example: mvn -DenvOs=linux -DenvWs=gtk -DenvArch=x86_64 package
Changes:
* dynamicanalyzer.product with its resources was moved to separate project
'org.tizen.dynamicanalyzer.workbench.product'
* non-exsitent dependecies were removed from 'build.properties' files
* maven build configurations (pom.xml) for parent and product projects were
created
* maven extensions configuration file (.mvn/extensions.xml) was created
* modified org.tizen.dynamicanalyzer.cli/build.xml to use new product
directory
Used Tycho version: 0.24.0
Required Maven version: 3.3.+
Required Java version: 1.7.0
Note: If you have Java 8 installed Maven will use it instead of 7 without
explicitly defined JAVA_HOME.
Change-Id: Iad884b0ab7916f2905d08e3bf241f3afa5f91764
Dmitriy Nikiforov [Thu, 12 May 2016 10:21:18 +0000 (13:21 +0300)]
SRADA-374: Changed Powermock and Mockito libraries to newer versions.
powermock-mockito-1.6.3 which was added in earlier commit to
org.tizen.dynamicanalyzer depends on mockito versions 1.10.8-1.10.X.
Also, updated mockito and powermock in org.tizen.dynamicanalyzer.common to
keep consistency.
Change-Id: I143a22c124f39e28e21bb72cc5f315975a1331b0
Dmitriy Nikiforov [Thu, 28 Apr 2016 17:45:56 +0000 (20:45 +0300)]
SRADA-374: Fixed errors in Dynamic Analyzer unit tests sources.
1) Added @Ignore annotation to AnalyzerUtil tests.
These test now all fail as tested functionality is not yet implemented so
they must be ignored.
2) Fixed org.tizen.dynamicanalyzer.ui.file.data tests
Changed hardcoded pathes to Tizen-SDK to current directory with following
deletion of all created files in cleanup. For that purpose Apache Commons IO
library was added to 'test/lib' (same version as in org.tizen.common).
Added calls of SqlConnectionManager.releaseResultSet() to FileApiDBTest.
Without it test hung on SqlConnectionManager.closeConnection().
3) Fixed FileChartBoardTest from org.tizen.dynamicanalyzer.ui.file
Injected FileDataMaker mock object into FileChartBoard object to avoid
NullPointerException.
Marked test with @Ignore as it does not test anything now.
4) Fixed ExecutionCallbackManagerTest
This test relied on tests execution order which was changed in later JUnit
versions.
Tests verified number of executions of methods from the same objects. This
resulted in doubled numbers in the second test.
5) Fixed FileDataMakerTest
Changed database path to relative to current directory with cleanup after
all tests.
Change-Id: I0ffb803f1e12fdd799aa7494a99335dd27d4970c
Gihun Chang [Thu, 2 Jun 2016 03:02:10 +0000 (12:02 +0900)]
[FIX] Remove test package build
Change-Id: I56def2ee2d06438571dd648d5c578060de2d6fa8
jaeyong lee [Mon, 4 Jul 2016 04:31:29 +0000 (13:31 +0900)]
[HOTFIX] Resolve compile error
Change-Id: Ib657c8673170326a5e2f3adf32e5b393f1f97318
ggh1933.go [Tue, 28 Jun 2016 06:20:50 +0000 (15:20 +0900)]
[SRADA-850]FIX : when new trace, report menu items reset.
- + when feature setting OK, ReportMenu items reset.
Change-Id: Ia1b7b1cf847937cbb71306c31a31e244f2a29582
Vladislav Eliseev [Tue, 21 Jun 2016 15:59:24 +0000 (18:59 +0300)]
SRADA-688: divide TimelineChartManager
* All tracing data create/get activity was moved
to the newly created TimelineDataManager, which
was created based on TimelineChartManager.
* Register TimelineDataManager in PageInfoRegistry for TimelinePage.
* Log parsing in LifecycleLogParser turned off in non-GUI mode.
* CleanChartManager only in GUI mode.
Conflicts:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/info/screenshot/ScreenshotView.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/page/PageInfoRegistry.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/TimelinePage.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/common/TimelineChartManager.java
Change-Id: I92ad9b35f49a316b9a7490fb766d02e6459d644b
Vladislav Eliseev [Fri, 17 Jun 2016 13:43:00 +0000 (16:43 +0300)]
SRADA-688: removed CustomData charts and related functionality
These charts already deprecated and not supported
by latest SWAP and protocol versions and not planned to be.
Conflicts:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/logparser/CustomLogParser.java
Change-Id: Idbeaf62a6a72fe600700c9b17eef025c7836a4f5
p.privalov [Tue, 21 Jun 2016 13:45:15 +0000 (16:45 +0300)]
SRADA-821: Added check for device existance in ProcessManager.
Added test for isDeviceExist() into ProcessManagerTest.
isDeviceExist implemented to CliInternals.
Initialization of DeviceManager now called automatically.
Change-Id: If433065094e971be8a2b9765ed834e12a7ffbb53
Vladislav Eliseev [Tue, 21 Jun 2016 15:58:43 +0000 (18:58 +0300)]
SRADA-101: remove unnecessary dot in debug message
Change-Id: I2e066a451c7c3a4252ec41a346c770e373cda99a
Maria Guseva [Sun, 19 Jun 2016 14:16:26 +0000 (17:16 +0300)]
SRADA-785: Register AppStartupDataManager in CLI mode
Change-Id: Ia5c38472750ff44e6dc83e4ce93eb58b0de964d1
Maria Guseva [Mon, 20 Jun 2016 11:14:37 +0000 (14:14 +0300)]
SRADA-815: Fixed GLDataManager to be initialized properly in CLI mode.
Also enlarged TRACING_PROCESS_STOP_TIMEOUT twice which is enough to stop
tracing for OpenGL template, measured on Tizen_2.4 mobile emulator.
Change-Id: Ic76ff5ae7e8a12603cf6e71277e00d8c528c46fe
Maria Guseva [Sun, 19 Jun 2016 15:09:40 +0000 (18:09 +0300)]
SRADA-784: Get rid of switch in PageInfoRegistry.convertPageIDtoPageName().
* PageInfo.pageID, .getPageID() - new field and corresponding getter.
* PageInfo - constructor changed to init pageID value.
* PageInfoRegistry.pagesMapByID - new field.
* PageInfoRegistry - static section changed to init pagesMapByID.
Change-Id: I10c77dc6d682449348c8c5fe5b898de30b5fc420
Maria Guseva [Thu, 16 Jun 2016 16:37:18 +0000 (19:37 +0300)]
SRADA-784: Save list of pages for trace collected in CLI.
For this CLIAction.getPageNames() has to be implemented properly as it is used
in Project.savePrimitive().
* CLIAction.getPageNames() - implemented.
* CLIAction.getCurrentTargetName() - new private method.
* CLIAction.setPageBySetting() - use new private method.
* UIAction.convertPageIDtoPageName() - removed from interface.
* PageInfoRegistry.convertPageIDtoPageName() - new method,
moved from GUIAction.convertPageIDtoPageName().
Conflicts:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/handlers/GUIAction.java
Change-Id: I43386c26c0981c0b9c4c989dd9c388148bcb32a9
Maria Guseva [Thu, 26 May 2016 08:13:47 +0000 (11:13 +0300)]
SRADA-216: Add dependency libraries for org.tizen.dynamicanalyzer.cli project.
Change-Id: Ie59d011fff7868c57dcf32d305f910535191dfd7
Maria Guseva [Thu, 9 Jun 2016 09:10:08 +0000 (12:10 +0300)]
SRADA-781: Create temp directory before start tracing in DA CLI.
* CliInternals.startTracing() - create temp directory firstly.
* PathManager.createDATempDir() - new static method extracted from
AnalyzerPlugin.start().
Change-Id: I36773eb44032a3f2fc819e1c7bc7fb7907993ef2
Maria Guseva [Wed, 8 Jun 2016 11:22:17 +0000 (14:22 +0300)]
SRADA-772: Fixed NullPointerException in PathManager.getTizenSdkInstallPath().
The exception occured in unit tests for CLI after changes applied
in previous commit. When SDK installation is not found the
InstallPathConfig.getSDKPath() returns null but it isn't checked properly
in PathManager.getTizenSdkInstallPath(). In that case it should also return
null.
Change-Id: Ic503d836318ad2f2bbd02d5df9eaa187d79c15ba
Maria Guseva [Tue, 7 Jun 2016 16:40:07 +0000 (19:40 +0300)]
SRADA-772: Implemented save trace functionality in DA CLI.
* CliInternals.saveTrace() - new method.
* StopCommand.processCommandInternal() - fixed to print correct output path.
* TracingProcessManager.createTracingProcess() - set output file name as an
argument for starting new tracing process.
* TracingProcess.saveTrace() - new method.
* TracingProcess.performAllTasks() - do saving trace and check its result
before return.
* Project.init() - extracted the filename construction to the separate
public static method constructSaveName() to be reusable in CLI.
* TracingProcessCommunicationTest.interruptCommunication() - test fixed to
stub saveTrace with true result.
Change-Id: I6e940ca97caf137bd74ca8efaf54904384a357c8
Maria Guseva [Tue, 7 Jun 2016 17:00:48 +0000 (20:00 +0300)]
SRADA-216: Wait for start tracing finished before process stop in DA CLI.
DA is not able to stop tracing correctly while DAState is in PREPARE_START.
Due to that the blocking until the preparation finished is needed in
TracingProcess.startTrace() before return.
* ProcessManager.TRACING_PROCESS_STOP_TIMEOUT - changed to 8sec, time measured
on Tizen_2.4 mobile emulator, enough to start tracing before process stop.
* ProcessManagerTest.BASE_TIMEOUT_MS - updated correspondingly to
TRACING_PROCESS_STOP_TIMEOUT value.
* TracingProcess.startTrace() - added blocking until tracing preparation
finished.
Change-Id: I7c176e0458999b85439edfa5e855c959f6fff66c
Maria Guseva [Tue, 7 Jun 2016 16:49:19 +0000 (19:49 +0300)]
SRADA-737: Added wait/notify on DAState for a preparation phase finished.
Now DAState notifies all waiters that are waiting for DAState to be changed
to INIT, RUNNING or DONE which means that a preparation phase is finished.
Change-Id: I79c78e8886538a82007764f73c76217bf9b23521
Maria Guseva [Fri, 27 May 2016 12:17:19 +0000 (15:17 +0300)]
SRADA-511: Fix incorrect remove of start rows in FileApiListTable.
Change-Id: I0dc97d42181c846ce663af515ec3fb9801d27de1
Vladislav Eliseev [Wed, 1 Jun 2016 16:26:45 +0000 (19:26 +0300)]
SRADA-214: implement TracingProcess#waitForCompletion method
Now TracingProcess uses DAState wait/notify mechanism
Change-Id: I7c836df674f8bfc7b5227105d92e62dc0d1922ea
Vladislav Eliseev [Tue, 7 Jun 2016 08:50:33 +0000 (11:50 +0300)]
SRADA-737: added wait/notify mechanism for DAState
Now DAState notifies all waiters that are waiting
for DAState.DONE state change.
Change-Id: I43d23468de62472650bf5fbeb77e80cf77d109eb
Vladislav Eliseev [Tue, 31 May 2016 13:58:05 +0000 (16:58 +0300)]
SRADA-736: fix synchronization issues in StopTraceManager
Now DAState will not be updated after stop trace request
until actual tracing process will not be completely finished.
Conflicts:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/control/StopTraceManager.java
Change-Id: I0b29fe7ed51781951edc0bd07ee71b8ffb79550e
Vladislav Eliseev [Wed, 18 May 2016 08:50:52 +0000 (11:50 +0300)]
SRADA-445: implemented devices -u command for tracing devices.
Added command option parser in DeviceCommand.
Added getCurrentlyTracingDevices() method in CliInternals.
Change-Id: I5e5fabcfd879a85ce35dc0948197d592c855a688
Vladislav Eliseev [Thu, 28 Apr 2016 17:46:32 +0000 (20:46 +0300)]
SRADA-445: moved TracingArgumentsParser#printHelp() in cli.utils.Help
Change-Id: Id25ecfdf7c4f3ccfe9efdb3d6c9cf2c61dc00604
Vladislav Eliseev [Tue, 31 May 2016 14:02:43 +0000 (17:02 +0300)]
SRADA-395: add sleep time in tests before assert
Unstable synchronization causes to fail some unit tests.
Change-Id: I02dd6fd35b5f4ef6a367c14da05944baf1802bc4
Vladislav Eliseev [Mon, 23 May 2016 18:45:57 +0000 (21:45 +0300)]
SRADA-395: fixed synchronization issue in TracingProcessManager#stopTracing()
Issue was caused by blocking for indefinite time in
synchronized TracingProcessManager's method by calling
blocking #waitForCompletion().
Change-Id: If88ebb5c848a6a595bf21dbb116fa94faa65e8ce
Vladislav Eliseev [Mon, 23 May 2016 18:21:23 +0000 (21:21 +0300)]
SRADA-395: added new unit test for TracingProcessManager
This test check situation when forceStopTracing is called
from one thread while another thread is blocked by
TracingProcessManager#stopTracing(long) call.
Change-Id: I4755a007ea271fdaf9d165a5df5910061defed89
Vladislav Eliseev [Mon, 30 May 2016 08:32:46 +0000 (11:32 +0300)]
SRADA-395: use AtomicInteger for atomic increment in tests
Before was used volatile integer which is non-threadsafe
for increment operation without extra lock.
Change-Id: I0679fdb12402271ad1643486f6064a5c8d559812
Vladislav Eliseev [Tue, 24 May 2016 15:03:30 +0000 (18:03 +0300)]
SRADA-395: added new unit tests for TracingProcessManager
These tests check situation when stopTracing and forceStopTracing
are called for process with finished=true in context.
Change-Id: I3226faa7b619c0d991a15dd80b7e89aea057144d
Maria Guseva [Thu, 26 May 2016 07:30:30 +0000 (10:30 +0300)]
SRADA-216: Create data managers before starting trace threads in CLI mode.
* CliInternals.startTracing() - invoke setUIElementsBySetting() before
start DA tracing threads.
* CLIAction.setUIElementsBySetting() - add creation of CallStackInserter().
* PageInfoRegistry - disable the InteractiveDataManager as not supported for CLI
and the TimelineChartManager with FIXME comment.
Conflicts:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/page/PageInfoRegistry.java
Change-Id: I3766344edba3353a78da9070d2091a1f2b4a4ea4
Maria Guseva [Tue, 24 May 2016 13:24:34 +0000 (16:24 +0300)]
SRADA-216: Implemented CliInternal startTracing() and stopTracing().
Conflicts:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/handlers/CommandAction.java
Change-Id: Iac4150b9e17c93a56c59767627d55d1c9ba64630
Maria Guseva [Wed, 25 May 2016 08:41:03 +0000 (11:41 +0300)]
SRADA-216: TracingProcess.stopTrace() stub implementation added.
Change-Id: I105a7f6c211dbbf3a6da5694786aba7970585679
Maria Guseva [Tue, 24 May 2016 07:44:02 +0000 (10:44 +0300)]
SRADA-656: StopTraceManager.run() fixed to work in CLI mode.
Wraped UI-related parts with Global.isGUIMode() checks.
Also fixed ReplayManager.resetStopAlarm() the same way as it is called in
StopTraceManager.run().
Conflicts:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/control/StopTraceManager.java
Change-Id: Ia9c6c73fe28b05bca4a8c9060ec478e26ab4f2e6
Maria Guseva [Mon, 20 Jun 2016 13:47:30 +0000 (16:47 +0300)]
SRADA-820: Applied refactoring done while merging dev_cli with upstream branch.
These changes were applied in commit
12367c4b485f96597fc038624634b6c73c86f053
Change-Id: I155c3d7be96ddc393df5050f1d26a10bc445e755
Maria Guseva [Sun, 22 May 2016 13:59:48 +0000 (16:59 +0300)]
SRADA-216: TracingProcess.startTrace() stub implementation added.
* CliInternals - set Logger to debug mode for now while on active
implementation stage.
* CliInternals.loadConnectedDevices(), .selectApp(), .selectTemplate() - new
helper methods.
* CliInternals.startTracing(), .stopTracing() -renamed to
startTracingProcess() and stopTracingProcess().
* CliInternals.startTracing() - new method. Setting of selected device,
application and template implemented.
Change-Id: I7730d04889b5c133642c2a5b2dc915060bdd1e73
Maria Guseva [Mon, 23 May 2016 11:32:37 +0000 (14:32 +0300)]
SRADA-629: Communicator40.serializeApplicationInst() fixed to work in CLI mode.
* Communicator40.addCheckpointsToInstList() - new private method extracted from
serializeApplicationInst().
* Communicator40.serializeApplicationInst() - call addCheckpointsToInstList() only
in GUI mode.
Change-Id: I497d7ad3253c171e3eefb2c8b1133eaadd9d3568
Maria Guseva [Sun, 22 May 2016 13:01:45 +0000 (16:01 +0300)]
SRADA-216: Extracted general functionality from Toolbar.onAppSelected() method.
Exctracted funtionality is not related to the Toolbar and is supposed to be
used in both CLI and GUI modes. The extracted methods are moved to PackageInfo
class as funtionality relates to processing of PackageInfo instances.
* PackageInfo.getProcessInformation(), .getBinaryInformation() - new methods.
Change-Id: I8ce9f33448679956226697bc669f7bc0ed4d045f
Maria Guseva [Fri, 20 May 2016 17:17:46 +0000 (20:17 +0300)]
SRADA-629: AnalyzerManager.clear() fixed to work in CLI mode.
This method is called from StartTraceManager.run().
Wraped UI-related part with Global.isGUIMode() check.
Change-Id: I6ab3a6a876c61d2a91ffe3d40ceabcc55597335f
Maria Guseva [Fri, 20 May 2016 17:12:49 +0000 (20:12 +0300)]
SRADA-629: CommonAction.clear() fixed to work in CLI mode.
This method is called from StartTraceManager.run().
* CommonAction.resetGUIElements() - new private method extracted from clear().
* CommonAction.clear - call resetGUIElements() only in GUI mode.
Change-Id: I821dc75e4c52160f235dce4e814b7177ad2a2971
Maria Guseva [Fri, 20 May 2016 17:02:07 +0000 (20:02 +0300)]
SRADA-629: StartTraceManager.run() fixed to work in CLI mode.
Wraped UI-related parts with Global.isGUIMode() checks.
Also added debug print in StartTraceManager.setStageComplete().
Conflicts:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/control/StartTraceManager.java
Change-Id: Ie592d8874cc50cce64e42d0928d4c69795407f90
Maria Guseva [Fri, 20 May 2016 14:15:05 +0000 (17:15 +0300)]
SRADA-629: StartTraceManager constructor fixed to work in CLI mode.
* StartTraceManager.createProgressDialog() - new private method extracted
from constructor.
* StartTraceManager - call createProgressDialog() only in GUI mode.
* StartTraceManagerTest - new JUnit test for StartTraceManager class.
For now it has one test for constructor in CLI mode.
Change-Id: I2f2614a39b3b659667050fd5f9960801d7a5aaf2
Vladislav Eliseev [Tue, 24 May 2016 13:12:15 +0000 (16:12 +0300)]
SRADA-395: added unit test for ProcessManager#stopAll
Change-Id: Ifdc00663e93f26dae77678bd2f5156f4a54b3546
Vladislav Eliseev [Tue, 24 May 2016 13:11:35 +0000 (16:11 +0300)]
SRADA-395: added unit tests for ProcessManager#stopTracing
Change-Id: I57c8d32fd147f1f575e54b147dfc2491ee6a68d4
Vladislav Eliseev [Tue, 24 May 2016 08:26:25 +0000 (11:26 +0300)]
SRADA-583: fix ant junit task to fail in case of failure
Ant junit task returned zero exit code in case
of failure earlier. Now it still runs all tests
but returns non-zero exit code if any test was failed.
Change-Id: I086a6d98a091dfeadc1c70e73707146f75bca045
Maria Guseva [Wed, 18 May 2016 14:16:30 +0000 (17:16 +0300)]
SRADA-407: Use DataManagerRegistry.createDataManagers() in GUI mode.
Now data managers are registered separately from GUI objects creation.
* BaseView.compositePages() - register needed data managers for each succesfully
created page via DataManagerRegistry.createDataManagers().
* Removed data managers registration from corresponding DAPageComposite constructors.
Conflicts:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/file/FilePage.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/memory/MemoryPage.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/network/NetworkPage.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/opengl/GLPage.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/SummaryPage.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/thread/ThreadPage.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/TimelinePage.java
Updated:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/page/PageInfoRegistry.java
Change-Id: Ib6d89309279878ff34a988a3fab3302b0ec25e3e
Maria Guseva [Mon, 16 May 2016 11:31:16 +0000 (14:31 +0300)]
SRADA-407: Introduce createDataManagers*() methods and use them for CLI.
Introduce new methods createDataManagers*() in DataManagerRegistry class and
use them for implementation of setUIElements* methods of CLIAction.
* DataManagerRegistry.createDataManagers(), .createDataManagersByTarget() - new
methods.
* CLIAction.setUIElements(), .setUIElementsBySetting(), .setPageBySetting() -
implemented.
Change-Id: I7cae4fdec33c4411d1dff825ce9e9e512f67ac41
Maria Guseva [Mon, 16 May 2016 13:16:05 +0000 (16:16 +0300)]
SRADA-407: Introduce method to get list of pages by given target and use it in BaseView.
The new static method PageInfoRegistry.getPageNamesByTarget() is extracted from
BaseView.createPagesByTarget() and is supposed to be used in both GUI and CLI
modes. Intoduced also new field for PageInfo in order to store if page should
be created by default.
* BaseView.createPagesByTarget() - use getPageNamesByTarget() method.
* PageInfo - new field isDefault, corresponding getter and constructor
added, comments for fields added.
* PageInfoRegistry - set Summary and Timeliene pages as default.
* PageInfoRegistry.defaultPages - new field to store set of default pages
names.
* PageInfoRegistry.getPageNamesByTarget() - new method.
Conflicts:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/page/BaseView.java
Updated:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/page/PageInfoRegistry.java
Change-Id: I6c8e2cda5b3d21b64212299041cecef8ea361a94
Maria Guseva [Tue, 17 May 2016 13:35:15 +0000 (16:35 +0300)]
SRADA-407: Check if data manager is already registered in DataManagerRegistry.
This is optimization of DataManagerRegistry.createDataManagers() method.
* PageDataManager.getName() - use new getClassName() method, so now
getSimpleName() of class is used instead of custom parsing of full class name.
* PageDataManager.getClassName() - new static helper method.
* PageInfoRegistry.getDataManagers() - renamed to getUnregisteredDataManagers(),
add one more argument, changed to check each of manager for given page if it is
already registered.
* DataManagerRegistry.createDataManagers() - use new method
getUnregisteredDataManagers().
Change-Id: I16682bc799b3ec929753d1c2fc8e75f31f4dd59b
Maria Guseva [Mon, 16 May 2016 18:15:54 +0000 (21:15 +0300)]
SRADA-407: Introduce method to register data managers independently from GUI.
* DataManagerRegistry.createDataManagers() - new method aimed to create and
register data managers by given page name.
* PageInfo.pageDataManagers, .addDataManager(), .getDataManagers() - new field
and methods to store set of data managers for given page.
* PageInfoRegistry - set data managers for each page in static section.
* PageInfoRegistry.getDataManagers(), .getDataManagerInstance() - new methods.
Conflicts:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/page/PageInfoRegistry.java
Updated:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/memory/MemoryPage.java
Change-Id: I3cdb67a031e181f7fbe0e39cfa4d4e92d5d88ba2
Maria Guseva [Fri, 6 May 2016 16:48:05 +0000 (19:48 +0300)]
SRADA-420: Introduce PageInfoRegistry to store list of pages and use it in BaseView.
* PageInfo - new class to store information for each page object.
* PageInfoRegistry - new class to register all available pages in ordered list
and to provide method for their creation by given name.
* BaseView.pageOrder - static field removed as unneeded anymore.
* BaseView.compositePages(Set<String>) - use PageInfoRegistry to get list of
ordered pages.
* BaseView.compositePages(List<String>) - use PageInfoRegistry to create
DAPageComposite objects by given page names.
TODO: Add unit test for BaseView.compositePages(List<String>).
Conflicts:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/page/BaseView.java
Updated:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/page/PageInfoRegistry.java
Change-Id: Ied674a159c417b68d72e31ba99660a450c4f8cf3
Maria Guseva [Wed, 29 Jun 2016 02:36:46 +0000 (05:36 +0300)]
SRADA-848: Fixed FlatFeature to work in CLI mode.
Moved all GUI-dependent initialization into separate setter method
setResources(). In case in CLI it does nothing.
Change-Id: I4bf390e4f7379ccc1e9680798f5266cdfd639cbe
Dmitriy Nikiforov [Tue, 28 Jun 2016 07:50:50 +0000 (10:50 +0300)]
SRADA-263: Updated build.linux and DACLI build.xml scripts for DIBS build
Change-Id: I242e3024ea00ee72db631db8918076ddc9e9f16b
dongkyu6 lee [Thu, 30 Jun 2016 05:49:07 +0000 (14:49 +0900)]
[RELEASE] DA 2.3.5
Change-Id: Ibe291ddf7328368793143d4ca6985b33c65ec80e
Maria Guseva [Tue, 28 Jun 2016 09:14:14 +0000 (12:14 +0300)]
SRADA-848: Merge branch 'dev_cli' into sdk_merge (2)
Merged with dev_cli changes before PageInfoRegistry introduced.
dev_cli HEAD commit:
a4adbd42cc61963b741cb48bd7145c44fc1d7099
Conflicts:
org.tizen.dynamicanalyzer.cli/src/org/tizen/dynamicanalyzer/cli/CliFrontend.java
org.tizen.dynamicanalyzer.cli/src/org/tizen/dynamicanalyzer/cli/CliInternals.java
org.tizen.dynamicanalyzer/.classpath
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/communicator/DeviceManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/communicator/IDECommunicator.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/control/StopTraceManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/handlers/GUIAction.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/hierarchy/tree/HierarchyTreeView.java
Change-Id: I4cd5eb9fc642d1e8ed13247a1b3d3b2ab025047e
Maria Guseva [Wed, 27 Apr 2016 15:21:04 +0000 (18:21 +0300)]
SRADA-406: Introduced new setUIElements() method in UIAction interface.
Use the new method where it's applicable instead of setPages()+setCharts()
methods invocations. Removed unneeded methods from UIAction interface.
The setPageBySetting() method is left in interface as it is called in
IDECommunicator.autoStartApplication() without following charts updating.
Fixed comments in UIAction and GUIAction classes.
* UIAction.setUIElements(), setUIElementsBySetting() - new methods.
* UIAction.setChartBySetting() - method removed.
* GUIAction.setPages(), setCharts(), setChartBySetting() - methods changed
to be private.
* OpenTraceHandler.execute() - call setUIElements() instead of
setPages()+setChart().
* SettingDialog.doApply(), WelcomeDialog.doApply()- call
setUIElementsBySetting() instead of setPagesBySetting()+setChartBySetting().
Updated:
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/setting/FlatFeatureDialog.java
Change-Id: I95a7d6cfed53c9b3b46a81c7b4d9afcd33020128
Maria Guseva [Tue, 26 Apr 2016 12:16:23 +0000 (15:16 +0300)]
SRADA-406: Test for UIActionHolder class.
Change-Id: I0d4c4b81f9bb58e2696b96c6339c7aeeea743157
Maria Guseva [Tue, 26 Apr 2016 12:11:50 +0000 (15:11 +0300)]
SRADA-406: Add harmcrest and powermock libraries into org.tizen.dynamicanalyzer.
Thay are supposed to be used in unit testing, in particularly for testing of
the UIActionHolder class.
Change-Id: I7e6088962d06c1c2eb4cd2e96db222c5b4f985c1
Maria Guseva [Mon, 25 Apr 2016 13:10:53 +0000 (16:10 +0300)]
SRADA-406: UIActionHolder.getUIAction() returns UIAction depending on UI mode.
* CLIAction - new class implementing UIAction interface, stubs for now.
Change-Id: I17a23700eae055979092a71c0967a6435e47a9d6
Maria Guseva [Mon, 25 Apr 2016 13:05:56 +0000 (16:05 +0300)]
SRADA-406: Extracted methods of GUIAction class to new interface.
* UIAction - new interface introduced.
The change is autogenerated via Eclipse refactoring.
Additionally added documentation comments.
Change-Id: I77974fd2fd327b2a230290ca5c8fc833ae9db9be