p.privalov [Wed, 20 Jul 2016 10:25:57 +0000 (13:25 +0300)]
SRADA-863 Removed save actions from MenuBar.showSaveDialog().
project.save() and DataManagerRegistry.saveData() called from
CommandAction.saveToZip(...) for both Cli and GUI.
Change-Id: I1954e2df74232b30432af5dc4838c7218e61dfaf
Dmitriy Nikiforov [Thu, 23 Jun 2016 15:48:23 +0000 (18:48 +0300)]
SRADA-883: Repackaged org.tizen.dynamicanalyzer dependencies into bundles
Previous dependencies still remain in lib directory to enable Eclipse build
without any changes in environment, but will not be used or packaged in
org.tizen.dynamicanalyzer plugin during Maven build.
Change-Id: I690b5f0a12f859b310f0c9cf370daa90c8620761
Dmitriy Nikiforov [Wed, 20 Jul 2016 11:33:03 +0000 (14:33 +0300)]
SRADA-921: Removed TemplatesCommand
Change-Id: Ia351ae559ecb1cd321c81040f74c1fee86826d31
Maria Guseva [Wed, 20 Jul 2016 08:24:10 +0000 (11:24 +0300)]
SRADA-929: [RELEASE] DA 2.3.6: changelog updated
Change-Id: Ia4dca935e95fd8196a85972f18cd8a4f63b89343
Dmitriy Nikiforov [Wed, 20 Jul 2016 08:20:11 +0000 (17:20 +0900)]
SRADA-930: Fixed DIBS build on sdk branch
Now common-eplugin-rcp is downloaded manually by script from advux_main repo.
Change-Id: Idfdede890834d68c234954a25f32508e16c05905
Dmitriy Nikiforov [Tue, 19 Jul 2016 13:30:05 +0000 (16:30 +0300)]
SRADA-929: [RELEASE] DA 2.3.6
Change-Id: Ia1005306073b20937ff9a6c468e259eb62c098fd
Dmitriy Nikiforov [Fri, 24 Jun 2016 16:02:25 +0000 (19:02 +0300)]
SRADA-890: Implemented local DA settings loading
Needed to load configuration files from product instead of Tizen SDK.
Changes:
* Implemented PathManager.getConfigDir() static method
* Added PathConstants.TEMP_SETTINGS_FOLDER_NAME static value
* Added Apache Commons-IO library to plugin's dependencies
* Added 'temp' to .gitignore
Note: when running within Eclipse IDE DA will copy default setting files from
product resources to 'temp' directory in DA sources.
Change-Id: I20b6a7d5f707aa05d72957ac42d1f0eb18cc68b4
p.privalov [Tue, 19 Jul 2016 13:01:08 +0000 (16:01 +0300)]
SRADA-863 GUI Save and GUI Load dialog use PathManager.DA_SAVE_PATH as default.
Change-Id: I43545ee1e512b657b340285e694ac9418c3dc060
Dmitriy Nikiforov [Tue, 19 Jul 2016 13:25:28 +0000 (16:25 +0300)]
SRADA-933: Fixed NLS warnings in DA
* Added missing fields in AnalyzerLabels.java.
* Removed duplicated fields in ConfigureLabels.properties.
* Added missing fields in UserErrorWarningLabels.properties.
Change-Id: Idfa75f19de2ae0a1b8164b392020d83cb17b2245
Maria Guseva [Wed, 13 Jul 2016 16:49:14 +0000 (19:49 +0300)]
SRADA-909: Get rid of double args parsing in start command.
* StartCommand.parseArguments - new private field which is to be initialized
only once in checkArgs() method.
Change-Id: I370636bf4ae9c34be9632f7c9a3f5db734805ea7
Maria Guseva [Tue, 19 Jul 2016 11:40:30 +0000 (14:40 +0300)]
SRADA-896: Updated help message for CLI 'start' command.
Updated general description of 'start' command and added more detailed
description for CLI tracing features options.
* StartCommand - help message in constructor updated to mention features
instead of templates.
* TracingFeatureArgument.addDefaultFeaturesDescription() - new private method,
invoked in static section for all enum values.
* TracingFeatureArgument.updateArgsDescription() - new private method,
invoked in addFeatureValue().
* Help.width - new private final field, set to 100 now.
* Help.printHelp() - changed to print options in order they were defined.
Change-Id: I7f109124320a67d4a83dedc9c7259b3db3ee9453
Maria Guseva [Tue, 19 Jul 2016 11:24:32 +0000 (14:24 +0300)]
SRADA-896: Fixed selection of 'all' features in CLI.
Now 'all' may be used together with other correct values
for CLI feature selection options with arguments.
Change-Id: Ieabb03da3146da1ab20f95b6c02a871681a2bb47
p.privalov [Wed, 6 Jul 2016 17:18:09 +0000 (20:18 +0300)]
SRADA-885: Implemented socket communication for CliManager and TracingProcesses.
Added second 'port' argument in TracingProcessManager constructor and
TracingProcessManager.createTracingProcess().
Communication performed with regular unencrypted socket.
Now TracingProcessManager can request and get tracing time from TracingProcess
TracingProcessManager also can request TracingProcess to stop, thus we don't
need to close input stream of TracingProcess to stop it, so we do not need
special listener thread for this event.
ProcessManagerTest, TracingProcessManagerTest, TracingProcessCommunicationTest
also redesigned to meet api changes and to test new communication process.
Change-Id: I257f8dbd6ef5d6e6c54938b0d4d556f55b2b16b1
jaeyong lee [Wed, 13 Jul 2016 11:56:18 +0000 (20:56 +0900)]
[SRADA-893] Add F5 shortcut key and resolve several issues.
- SRADA-924 : Ctrl+F Shortcut key not working.
- Disable ctrl + n when trace is running
- Reset the report menu items when user start a new setting.
- Chagne some constants about keycodes to SWT enum
Change-Id: I023b8975167bf06ed5ab13f5f483d6bea864e1d4
joon.c.baek [Tue, 19 Jul 2016 04:34:04 +0000 (13:34 +0900)]
[SRADA-536] Adjust width to resolve cutted text
Adjust FeatureList, SelectedFeatureList width
to resolve cutted text on SelectedFeature text.
For example,
"UI Hierarchy Analysis" was cutted.
Change-Id: Ib36a1c0a91ca6d04734aaf69d51cae434fbef9e9
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
joon.c.baek [Mon, 27 Jun 2016 08:33:48 +0000 (17:33 +0900)]
[SRADA-829] Highlight searched line in calltrace
Highlight searched line in calltrace table
Known issue:
The table data that exist out of screen couldn't search.
I guess that table will generated partially when need it.
Change-Id: Iecd8a47aeff97bdab697a1386990ddf12f64ff98
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
Maria Guseva [Mon, 18 Jul 2016 16:25:32 +0000 (19:25 +0300)]
SRADA-896: Added comments for TracingFeatureArgument enum.
Change-Id: Iaae831247014e07d2a339bc9fd6785d8a2d750ee
Maria Guseva [Tue, 19 Jul 2016 06:52:16 +0000 (09:52 +0300)]
SRADA-896: Fixed TracingFeatureArgument constructor.
It didn't set any default value and results to unit tests failure.
Change-Id: Iad23c3c40db6a1cb4e8d8fd6e8ee37955d33201e
p.privalov [Mon, 18 Jul 2016 12:40:29 +0000 (15:40 +0300)]
SRADA-920 Features provided by cli enabled in da.
Changes:
* Required Pages and Charts added to trace with CliInternals.selectFeatures().
* InTracingArguments featuresList replaced with featuresSet,
method getFeaturesList(...) replaced with getFeatures(...)
* Implemented tests for TracingFeatureArguments, containing few possible
combinations of selected features.
* Implemented tests for TracingArguments.isValid for different combinations of
specified features.
Change-Id: Ie4e3c847f5275c05b849def44a298790c5bc4032
Dmitriy Nikiforov [Fri, 15 Jul 2016 18:08:39 +0000 (21:08 +0300)]
SRADA-921: Made features arguments required and removed templates
Changes:
* TracingFeatureArgument.parseFeatureOptions now throws exception if it could
not find any feature options in given command line.
* Implemented TracingFeatureArgument.toStringArray() static method that
converts given TracingArguments object to its ArrayList<String>
representation.
* Removed '-t' option.
* Replaced CliInternals.selectTemplate with selectFeatureList method's stub.
* Fixed influenced tests.
Note that tracing will be disabled until CliInternals.selectFeatureList is
implemented.
Change-Id: Ibbea76d3f11a08f2e4c242384ac753b62dec8e20
Maria Guseva [Wed, 13 Jul 2016 16:50:11 +0000 (19:50 +0300)]
SRADA-896: Added CLI options for features selection.
Introduced new TracingFeatureArgument class to represent CLI options
for selecting tracing features. Use new options in TracingArgumentsParser.
TODO: Screenshots feature is not fit to new class as it has optional integer
argument, so it should be processed separately.
Change-Id: Ifa2b15550ecf4d886b2c16aadc489aa2d9a88d52
Maria Guseva [Tue, 12 Jul 2016 13:56:16 +0000 (16:56 +0300)]
SRADA-896 Added field to save list of features in TracingArguments.
Change-Id: Idd44fa5ae1604458585b791ea40f149099ba795a
Maria Guseva [Tue, 12 Jul 2016 17:02:54 +0000 (20:02 +0300)]
SRADA-896: Extracted PrimitiveFeature enumeration from FlatFeature.
New enumeration represents FlatFeatures without resources so it is fully
independent from GUI.
Change-Id: I4c5b6ef0ecdbca044d60a11282bab9d7ff7eead2
Dmitriy Nikiforov [Wed, 29 Jun 2016 13:58:38 +0000 (16:58 +0300)]
SRADA-758: Added prepare_dependencies.sh - automatical p2 repo creation
Script usage:
$ ./prepare_dependencies.sh /path/to/eclipse /path/to/common-eplugin
Example for ubuntu build:
$ ./prepare_dependencies.sh \
~/temp/default/eclipse-pde_3.0.2_ubuntu-64/data/eclipse-pde/eclipse \
~/temp/default/ide
Also, updated build.linux to use this script.
Change-Id: Iadf7ec13fc0deba2b79bd709a625ab474fbc86eb
Dmitriy Nikiforov [Thu, 23 Jun 2016 14:26:04 +0000 (17:26 +0300)]
SRADA-758: Removed Mars dependency from Maven build
Now all bundle dependencies will reside in local p2-repository repackaged if
necessary into osgi-bundles to avoid packaging them inside plugins.
Creation of local p2-site can be done with p2-maven-plugin: mvn p2:site
It also automatically repackages all mentioned dependencies into osgi-bundles.
Additional artifacts can be published with FeaturesAndBundlesPublisher
application with '-append' option which was added in build.linux script to
publish all Eclipse dependencies and common-eplugin.
Eclipse Mars will be downloaded from 'advux_main' repository no matter which
repository user has specified to pkg-build tool.
Change-Id: Ib2463b512e85ea74895b6efff96713e73b7cd520
Maria Guseva [Thu, 14 Jul 2016 14:27:53 +0000 (17:27 +0300)]
SRADA-908: Restored CPU_CHART_TITLE value changed after merge.
It was changed in commit
6f56355356e400e522aefa2247791b509e5b26ef
on ui_e4_migration branch. As a result the CPU Usage chart is not working
anymore for both GUI and CLI tracing.
Change-Id: If83f905a1a8dd7fd91cc36145944a75d000c9074
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