0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 08:41:02 +08:00

445 Commits

Author SHA1 Message Date
Victor Zarubkin
67ed94c774 (ProfMainWindow) Saving last opened file path into QSettings 2016-08-06 14:48:38 +03:00
Victor Zarubkin
27ec6aee7e refactoring 2016-08-04 23:46:04 +03:00
Victor Zarubkin
aac410d9f8 Merge branch 'develop' of https://github.com/yse/easy_profiler into develop 2016-08-04 23:35:49 +03:00
Victor Zarubkin
340a787358 (ProfGraphicsView) Fixed borders painting 2016-08-04 23:35:38 +03:00
Sergey Yagovtsev
4b43bebc4a Remove obsolete code 2016-08-04 23:29:08 +03:00
Sergey Yagovtsev
8346e50688 (profiler GUI) Store settings for application. Now is main geometry and
columns settings in blocks tree widget and colorized settings.
2016-08-04 23:12:41 +03:00
Sergey Yagovtsev
57d8bc85e3 Set to windows application on win platform for profiler gui 2016-08-04 23:12:05 +03:00
Victor Zarubkin
4f0fabdfd6 (profiler Reader) Added block_index field and replaced pointers SerilizedBlock* to block indexes;
(profiler GUI) Added plain vector of ProfBlocks (additional information for gui) for fast access;
(ProfGraphicsView) Removed unnecessary methods; small refactoring;
(ProfTreeWidget) Removed unnecessary map of tree items;
(ProfGraphicsScrollbar) Added colorizing of minimap (green = low duration, red = long duration);
2016-08-04 22:38:45 +03:00
Victor Zarubkin
55cd5a5751 (profiler Reader) For memory consumption optimization created BlocksTreeRoot class and move thread_name field from BlocksTree to new created class;
(profiler Reader) Added self_duration field for statistics;
(profiler Reader) Removed #ifdef macros;
(profiler Reader) moved BlocksTree, BlocksTreeRoot and thread_blocks_tree_t types inside profiler namespace;
(profiler GUI) Added globals.h and globals.cpp containing global variables and signals; Added profiler_gui namespace;
(ProfTreeWidget) Added context menu "Select columns" to make it possible to hide columns;
(ProfTreeWidget) Added percent statistics for blocks (Self %, Parent % and Frame %); Added displaying of total thread duration;
(ProfGraphicsScrollbar) Added context menu to make it possible to choose which thread to display on minimap;
(ProfGraphicsView) Highlighting currently selected thread;
2016-08-03 23:00:04 +03:00
Victor Zarubkin
4db8d4fbb6 (GraphicsScrollbar) Added mini-map which shows duration of blocks relative to each other;
(GraphicsScrollbar) Also added displaying of chronometer item position in graphics scrollbar.
2016-08-03 00:06:36 +03:00
Victor Zarubkin
aa7996c1c5 (ProfGraphicsView) Chronometer item text is displaying correctly taking into account visibleSceneRect borders 2016-08-02 22:24:22 +03:00
Victor Zarubkin
773f978bdc (ProfTreeWidget) Displaying thread names in the tree 2016-08-02 22:22:41 +03:00
Victor Zarubkin
5d6cf9e5b4 (ProfTreeWidget fix) Fixed compiler warning 2016-08-02 21:21:12 +03:00
Victor Zarubkin
b0f6b3f268 (GraphicsView) Fixed test();
(GraphicsView) Added a lot of comments;
(GraphicsView) Changed base unit from milliseconds to microseconds;
(GraphicsScrollbar) Fixed fluttering on very small scale;
(GraphicsView)+(TreeWidget) Chronometer item behavior: if selection made from left to right - selecting all items by intersection with rectangle; if selection made from right to left - selecting all items which are strictly inside selection rectangle.
2016-08-01 22:21:59 +03:00
Victor Zarubkin
bb0f2d3cd4 Added chronometer graphics item which shows time interval on graphics scene (Press right mouse button and move mouse on graphics scene). Also, all items from selected interval will be shown in tree widget. 2016-07-31 18:48:41 +03:00
Victor Zarubkin
c943431104 (GraphicsView) Using GraphicsScrollbar with qreal values instead of standard QScrollBar with int values.
(GraphicsView) Does not use standard QGraphicsView::scale and QGraphicsView::centerOn methods, does not use standard QScrollBar because of it's fast value overflow. Using manual offset for all scene items instead of standard scrolling.
2016-07-31 13:13:48 +03:00
Victor Zarubkin
ac484a1ae4 unnecessary include 2016-07-27 23:12:05 +03:00
Victor Zarubkin
5b7364b0bd Flicker functionality for profiler gui on QWidgets 2016-07-27 22:52:13 +03:00
Victor Zarubkin
03fb3f271f Scene paint fixes and optimization 2016-07-27 21:50:11 +03:00
Victor Zarubkin
9a616fc693 Merge branch 'develop' of https://github.com/yse/easy_profiler into develop
# Conflicts:
#	profiler_gui/main_window.cpp
#	src/reader.cpp
2016-07-10 01:36:02 +03:00
Victor Zarubkin
3978535a99 Added GraphicsScrollbar (still in development phase) for big graphics scene. Standard QScrollBar's int value gets overflow very fast when doing zoom-in for graphics scene. So it is necessary to create a Scrollbar with double value. 2016-07-10 01:31:45 +03:00
Victor Zarubkin
f734104280 (GraphicsView) New draw method with one GraphicsItem for the whole scene (testing) 2016-07-10 01:31:29 +03:00
Victor Zarubkin
2939f07c2a changed random seed 2016-07-10 01:15:41 +03:00
Sergey Yagovtsev
d356629e33 Open file by command line argument 2016-06-30 21:39:04 +03:00
Victor Zarubkin
fa270ea3f2 (GraphicsView) More effective memory consumption 2016-06-30 03:45:11 +03:00
Victor Zarubkin
5ca4158abf Highly optimized painting algorithm and memory consumption for Profiler GraphicsView 2016-06-30 02:57:57 +03:00
Victor Zarubkin
8b2100a3d6 correct comment 2016-06-27 23:24:04 +03:00
Victor Zarubkin
30d9e7645f (Graphics view) Disabled border lines painting because of vertical lines painting bug;
* (Graphics view) Changed height of blocks. Variable thread-block height;
* (Tree widget) Disabled sorting by name to save order of threads displayed on graphics view;
* (Profiler reader) Changed type of value returned by fillTreesFromFile().
2016-06-27 23:22:12 +03:00
Victor Zarubkin
98cb124c4e (Graphics View) Added text shifting relatively to it's parent item. 2016-06-27 22:17:43 +03:00
Victor Zarubkin
89766e83b1 (Tree widget) Added possibility to colorize rows with profiler blocks' colors;
* (Tree widget) Added displaying frame statistics for blocks.
2016-06-27 22:11:26 +03:00
Sergey Yagovtsev
d5416fede8 Clang warning fix 2016-06-26 22:34:51 +03:00
Victor Zarubkin
ef4a62cbe3 inverse colors for text items 2016-06-26 22:16:36 +03:00
Sergey Yagovtsev
95d13e98f1 linux build 2016-06-26 21:14:15 +03:00
Victor Zarubkin
e6c105561a added main window with both graphics view and tree widget;
* further improvement of graphics view: highly improved scene scaling and added scene drag with left mouse button pressed.
2016-06-26 20:54:16 +03:00
Victor Zarubkin
98035ae705 renamed gui classes from My* to Prof* 2016-06-26 19:06:53 +03:00
Victor Zarubkin
1435e80cef added headers for source files 2016-06-26 18:56:40 +03:00
Victor Zarubkin
1d66f4f641 moved gui sources to .h and .cpp 2016-06-26 18:46:51 +03:00
Victor Zarubkin
e412977f99 default sorting order for tree widget and resizeColumnToContents on items expand 2016-06-26 17:56:57 +03:00
Victor Zarubkin
ba9944b83f added collapseAll, expandAll and jump-to-min-item actions to tree widget 2016-06-26 17:33:43 +03:00
Victor Zarubkin
6b93a6635f added tree widget view for profiled blocks 2016-06-26 13:14:00 +03:00
Victor Zarubkin
a8df818b33 profiler gui: first steps 2016-06-26 12:48:59 +03:00
Sergey Yagovtsev
5f96b6403c Remove abs path 2016-06-10 23:45:21 +03:00
Sergey Yagovtsev
6d94573403 Add percent column 2016-05-06 00:30:31 +03:00
Sergey Yagovtsev
dfa583f410 Simple tree view 2016-05-01 23:32:46 +03:00
Sergey Yagovtsev
3d2ed40f54 add profiler gui 2016-04-29 16:13:32 +03:00