0
0
mirror of https://github.com/yse/easy_profiler.git synced 2025-01-14 00:27:55 +08:00

212 Commits

Author SHA1 Message Date
Sergey Yagovtsev
bb889d4d31 Add bazel build for easy profiler core 2019-12-02 19:51:25 +03:00
Victor Zarubkin
d1aee7f9b5 [core] Replaced usage of COMPILER_MSVC with _MSC_VER 2019-10-30 19:14:51 +03:00
Victor Zarubkin
defca63809 [core] fix old windows build 2019-10-30 09:34:17 +03:00
Victor Zarubkin
20ee8340dd [core] fix old windows build 2019-10-30 09:19:10 +03:00
Victor Zarubkin
272c0ceab1 [ui] fixed slider freeze after load new file in "Zoom" mode;
[core] #157 added new build flag EASY_OPTION_TRUNCATE_RUNTIME_NAMES which will prevent from crash for very big block names, but will reduce performance. Disabled by default because of very rare use case;
[core] #157 added new build flag EASY_OPTION_CHECK_MAX_VALUE_SIZE for EASY_VALUE arrays and strings - same as the flag above for block names. Also disabled by default;
2019-10-28 19:14:05 +03:00
Victor Zarubkin
c74744fae4 [ui] added workaround for Qt memory leak on Linux when using multiple threads;
[ui] added median duration into tree stats;
[ui] added max rows count for "Call-stack" tree mode;
2019-10-24 19:21:31 +03:00
Victor Zarubkin
b4494bcef9 [core] fix old msvc 2013 build 2019-10-23 02:26:00 +03:00
Victor Zarubkin
a3af57d26e [core] old msvc build 2019-10-23 02:04:27 +03:00
Victor Zarubkin
b23d21ffc8 [core] added median duration calculation 2019-10-23 01:55:47 +03:00
Victor Zarubkin
92a5ca4a75 Big bunch of changes:
* update copyright
* fix css parsing
* fix block name search
* add matching text highlighing for find results
* add calculation of block statistics for selected area
* new action: right-click on a block on "Diagram" selects region using left and right bounds of this block
* other optimizations
2019-10-20 16:12:37 +03:00
Sergey Yagovtsev
3be797b4ad Recreate socket on failed connection #154 2019-03-27 00:07:58 +03:00
Tobias Kalbitz
017ef6ad8b
Fix warning: Use nullptr instead 0 as pointer value. 2019-03-03 10:16:55 +01:00
Niraj Desai
19237c3c52 Support build with QNX 7.0 toolchain
Steps to build:

1. Source qnx700-env.sh
2. Use QNXToolchain.cmake to build:
cmake -DCMAKE_TOOLCHAIN_FILE=/path/to/QNXToolchain.cmake ../
2019-01-15 07:48:21 -08:00
Sergey Yagovtsev
9ff57440a8 fix build 2018-11-16 11:24:00 +03:00
Tal Shiri
c3b4ab124e Fix Android build
Android does not have libpthread, but instead exposes the pthread functions via Bionic
See: https://android.googlesource.com/platform/bionic/+/10ce969/libc/bionic/pthread.c
2018-11-05 23:27:34 -08:00
Victor Zarubkin
001a8258bf #134 [Core] fixed missing forward declaration and reordered some header files 2018-10-30 22:37:28 +03:00
Sergey Yagovtsev
cce8431484 Gramma fix #133 2018-10-04 13:10:42 +03:00
Joël R. Langlois
8865aabd70 Fixed compilation error on MIPS. #131 2018-10-04 09:58:12 +02:00
Sergey Yagovtsev
1eb2fa4fa2
Merge pull request #127 from mchiasson/patch-2
avoid leaking -std=gnu++11 flag to user's targets
2018-10-02 01:12:01 +03:00
Matt Chiasson
cccfc1bf55 avoid leaking -std=gnu++11 flag to user's targets
This fixes #126
2018-09-23 13:33:58 -04:00
Sergey Yagovtsev
53289cec81 Static thread local 2018-09-18 23:20:43 +03:00
Sergey Yagovtsev
99b761375b Remove ATOMIC_VAR_INIT 2018-09-18 22:41:58 +03:00
Matt Chiasson
cd84bb34ce
fixed the build when using Chrono clock
Fixes #128
2018-09-18 14:19:38 -04:00
Matt Chiasson
7935ec513f
fixed the libeasy_profiler.so deployment location
Fixes #123
2018-08-24 17:11:14 -04:00
Victor Zarubkin
f0a588eec5 #106 [Core][UI] Fixed reading bookmarks with empty text; Fixed overriding and restoring mouse cursor shape when hovering bookmark at the Diagram widget;
#0 [UI] Waiting until saving file is finished when closing the UI.
2018-06-14 02:57:12 +03:00
Victor Zarubkin
0ae430410d #106 [Core][UI] Added possibility to add user bookmarks with double-clicking on a timeline in the Diagram window.
#112 [UI] Fixed losing focus (and getting under MainWindow) for Blocks widget.
#0 [UI] UI styling, added custom window header and dialogs (could be turned off/on and adjusted position at [Settings -> Appearance] menu).
2018-06-09 02:18:39 +03:00
Victor Zarubkin
8623fa81bb #108 fix [Core] clang build for arbitrary values 2018-05-15 23:56:59 +03:00
Victor Zarubkin
1301dd05dc #0 [Core] fixed typo 2018-05-15 23:56:29 +03:00
Victor Zarubkin
03db640132 #0 [Core] findRange() fix for writeTreesToStream() 2018-05-13 03:38:07 +03:00
Victor Zarubkin
84b391b6cc #0 [Core] refactoring 2018-05-08 21:14:46 +03:00
Victor Zarubkin
82bc0c3901 #0 [Core] Windows build 2018-05-08 01:37:35 +03:00
Victor Zarubkin
8c90ee7ef5 #0 [Core] refactoring 2018-05-07 21:42:17 +03:00
Victor Zarubkin
f665478830 #91 [Core][UI] functions profiler::writeTreesToFile(), profiler::writeTreesToStream() are now working. Snapshot feature is now working: select an area on Diagram (with right mouse button or double-click) and press Snapshot button to save it to separate file. 2018-04-25 21:37:18 +03:00
Victor Zarubkin
21bcefcb75 #91 [UI] .prof serializator (intermediate commit) 2018-04-23 21:23:47 +03:00
Victor Zarubkin
0b9ee4e6d0 Merge remote-tracking branch 'origin/develop' into saving_file_develop 2018-04-23 01:38:01 +03:00
Victor Zarubkin
ae5c46477d #91 [UI] Snapshot feature further progress (intermediate commit) 2018-04-22 16:15:10 +03:00
Victor Zarubkin
ef7b41fd0d #91 [UI] Added snapshot tool stub; Working on saving blocks to file from UI 2018-04-22 03:34:26 +03:00
Victor Zarubkin
f9c0b7dc7a #67 [Converter] Rewrote json converter, arbitrary values would be added soon 2018-04-05 01:08:18 +03:00
Victor Zarubkin
3253fe2633 #48 [Core] Rearranged file header members order to minimize padding;
[Core] Changed version to 2.0.0;
2018-04-02 01:53:29 +03:00
Victor Zarubkin
5e632bedee #31 [Core] Arbitrary values: replaced size_t with uint16_t; [Gui] Added support of arrays to arbitrary values tree 2018-03-07 20:52:39 +03:00
Victor Zarubkin
5ff6acd422 Merge remote-tracking branch 'origin/develop' into release_2_0_dev 2018-02-24 23:25:51 +03:00
derevnja
647eced7d2 Add command line tool (profiler_converter) for converting to json format
related to #67
2018-02-07 19:11:12 +03:00
Victor Zarubkin
192ab87e4c #0 Simplified some lambdas 2018-01-29 23:42:18 +03:00
Victor Zarubkin
091d5447ce #0 Updated copyright dates; [Gui] thread_pool.cpp MSVC build fix; [Core] Renamed getCurrentTime() to profiler::clock::now() + renamed profiler::currentTime() to profiler::now() 2018-01-29 23:29:43 +03:00
Victor Zarubkin
a7a58acd1d #31 [Gui] Big update for arbitrary values viewer. It is now viable and can be used to inspect user metrics. Currently arbitrary values viewer is built into blocks list widget. 2018-01-21 19:37:44 +03:00
Victor Zarubkin
694497b5ca Release 2.0 further work. Intermediate commit. 2018-01-20 15:23:28 +03:00
Victor Zarubkin
22c61a42b5 #75 [Core] No waiting when dumping blocks. All events should now be stored properly. 2018-01-08 02:56:51 +03:00
Victor Zarubkin
2c008b77ed Merge remote-tracking branch 'origin/develop' into release_2_0
# Conflicts:
#	easy_profiler_core/block.cpp
#	easy_profiler_core/profile_manager.cpp
#	easy_profiler_core/reader.cpp
#	profiler_gui/common_types.h
#	profiler_gui/descriptors_tree_widget.cpp
2018-01-04 17:59:21 +03:00
Victor Zarubkin
f9a132e9ee #0 [Core] Minor cosmetic changes 2018-01-04 17:38:59 +03:00
uykusuz
50cd560722 #0: various fixes for windows build (#84)
* #0: various fixes for windows build

* remove warnings that definition of a variable hides previously defined ones
* remove warnings that function argument is not used
* remove warnings that statements are not reached
* event_trace_win: fix compilation with UNICODE

* #0 various windows fixes: react to PR comments

* localize unicode handling of process info to ProcessInfo
* fix compilation error in Properties constructor

* event_trace_win: fix bug in ProcessInfo initialization

We didn't retry setting the name when GetModuleBaseName() didn't succeed,
even though we did that before the last refactoring.

* Revert "event_trace_win: fix bug in ProcessInfo initialization"

This reverts commit c4ce6cf488be5489fa0a1a9c24e92dd39bbc42a1.

* Revert "#0 various windows fixes: react to PR comments"

This reverts commit cae31a25371e53a3645ddab82372c3772138d658.

* #0 various windows fixes: react to PR comments again

* keep number of allocations minimal
* add getProcessName() to retrieve the process name as char always (i.e. not UNICODE)
2018-01-04 17:15:02 +03:00
Sergey Yagovtsev
6e83f80f5b Install with include hierarhy 2017-12-29 17:12:08 +03:00
Victor Zarubkin
d049a1339e #75 [Core] No more waiting behavior when dumping blocks. Current solution resolves possible dead-lock but restricts any Events out of Frame bounds (You can see that the last event for LoadingResources thread in the profiler_sample is always absent). 2017-12-28 22:21:54 +03:00
Victor Zarubkin
6a74c76681 Windows build 2017-12-28 00:31:53 +03:00
Victor Zarubkin
4406664a7d #31 Basic arbitrary values viewer chart 2017-12-28 00:23:14 +03:00
Sergey Yagovtsev
941c5667bd minor refactoring 2017-12-28 00:00:20 +03:00
Victor Zarubkin
b73044fddd #31 [Core] Fixed issue with storing arbitrary value while dumping. // [GUI] Further values viewer progress. 2017-12-14 23:12:27 +03:00
Victor Zarubkin
d24e4a9e7e #31 [GUI] Arbitrary values viewer progress 2017-11-30 22:21:08 +03:00
Victor Zarubkin
ef7d9f0bad #81 [Core] Added an option to choose function names format 2017-11-28 21:37:18 +03:00
Victor Zarubkin
109c5fc47c #0 [GUI] Styling 2017-11-23 22:01:44 +03:00
Victor Zarubkin
66dce34169 #31 arbitrary value interface small refactoring 2017-11-20 23:36:33 +03:00
Victor Zarubkin
07cdde155a #0 MSVC2013 build 2017-11-20 21:53:12 +03:00
Victor Zarubkin
3b809fa6f3 Merge branch 'origin/develop' into release_2_0 2017-11-20 21:34:03 +03:00
Mika Rautio
e5fd86f9c8 Add support for building with Apple LLVM clang version < 8.0 (#82)
* Add support for building with pre 2016 Apple LLVM clang

* Automatically detect Apple clang that do not support thread_local

* Clarify clang thread_local support code comment
2017-11-20 20:23:15 +03:00
Victor Zarubkin
b3fd7c7837 #31 Single arbitrary values can be displayed in GUI as events + value converted to text 2017-11-15 21:43:52 +03:00
Victor Zarubkin
e0190fe7a3 #0 Windows build 2017-11-09 23:56:46 +03:00
Victor Zarubkin
bdb9e546b3 #0 [Core] Windows build 2017-11-09 23:43:12 +03:00
Victor Zarubkin
342aba8e77 #0 [Core] refactoring 2017-11-09 23:39:04 +03:00
Victor Zarubkin
ae4c6c4e9f #0 [Core][GUI] refactoring 2017-11-09 23:34:17 +03:00
Victor Zarubkin
530eb2446c #0 [Core] A lot of code refactoring 2017-11-09 23:12:54 +03:00
Victor Zarubkin
c2de745445 #0 [Core] Rearranged include files 2017-11-09 22:01:32 +03:00
Victor Zarubkin
8509b9b01b Merge branch 'origin/develop' into issue31_arbitrary_values 2017-11-08 21:50:25 +03:00
Victor Zarubkin
eef1dab923 #31 [Core] further work on arbitrary values 2017-11-08 21:38:07 +03:00
Victor Zarubkin
a0ab6a9000 #0 [Core] Added constexpr support macros and refactored extract_... functions 2017-11-08 21:34:51 +03:00
Sebastian Bischlager
23cf75fea4 Fixed #72 Where building x86 binaries with VS 2017 resulted in an internal compiler error 2017-11-06 18:00:37 +01:00
Sergey Yagovtsev
6db3cafdce fix #76 2017-11-05 12:27:43 +03:00
Victor Zarubkin
b812e1648c #75 Windows build
(cherry picked from commit ec720bfb253b71fa612b4b897e06d61929510f44)
2017-11-03 22:38:57 +03:00
Victor Zarubkin
ec720bfb25 #75 Windows build 2017-11-03 22:36:43 +03:00
Victor Zarubkin
52f3823b57 Merge branch 'origin/develop' into issue31_arbitrary_values 2017-11-02 22:49:12 +03:00
Victor Zarubkin
4bf796cb7a #75 [GUI] ui is not freezed now when you hit Cancel button while profiled blocks are prepared to be sent 2017-11-02 22:43:37 +03:00
Blake Martin
60e48d5a06 Added #include <malloc.h> to fix EASY_ENABLE_ALIGNMENT build error 2017-10-23 12:47:40 -05:00
Victor Zarubkin
cac628ce82 #31 added arbitrary value id 2017-10-21 01:57:48 +03:00
Victor Zarubkin
e9e937551e #31 build fix 2017-10-21 00:55:17 +03:00
Victor Zarubkin
86f7a48995 #31 intermediate commit: added basic API for arbitrary values profiling. Still not working. 2017-10-20 22:18:32 +03:00
Sergey Yagovtsev
74ee7bd92e add profiler_public_types.h for install 2017-10-12 22:40:18 +03:00
Victor Zarubkin
65bfb94276 #0 [Core] Refactoring: moved all types from profiler.h to separate file 2017-10-05 20:53:41 +03:00
Victor Zarubkin
1f8cc6346c #0 [Core] Suppress warning for unused variable 2017-10-04 22:46:13 +03:00
Victor Zarubkin
5e2d8e3be6 #0 [Core] Added alias for isEnabled, setEnabled functions and macros 2017-10-04 21:40:23 +03:00
Victor Zarubkin
2e85a7b6f4 #0 [GUI] fixed bug with missing empty threads on diagram 2017-10-04 21:37:11 +03:00
Victor Zarubkin
d915a8d506 #0 gcc build fix 2017-09-30 20:57:22 +03:00
Victor Zarubkin
d5f2ef0c6c #0 Build fix + reduced number of thread-local variables 2017-09-30 20:45:06 +03:00
Victor Zarubkin
000888f4af #0 [Core] Refactoring: replaced tabs with spaces 2017-09-30 19:53:54 +03:00
Victor Zarubkin
c7b9d4f464 #0 [Core] Refactoring: moved a lot of code to different source files 2017-09-30 19:51:33 +03:00
Victor Zarubkin
e6765a03a2 #53 [Unix][Core] Correction for printing a lot of warnings only if there is no thread_local support 2017-09-30 19:02:24 +03:00
Victor Zarubkin
8e601bc52f #53 [Core] Removed debugging rows 2017-09-28 21:09:12 +03:00
Victor Zarubkin
c6ff9f3277 #0 [Core] Replacing tabs with spaces 2017-09-28 21:05:45 +03:00
Victor Zarubkin
c813ea655d #53 [Core] Fixed problem with removing ThreadStorage for alive threads. But Linux would have another problem: potential memory leak or potential crash at your choise :)) because these wonderful pthreads does not allow to check thread state :( 2017-09-28 21:04:28 +03:00
Blake Martin
8b4726371e Added a static const member variable for readability and to get rid of a warning. 2017-09-03 21:51:27 -05:00
rationalcoder
bd1f6e49a3 Removed unnecessary syntax and removed a use of constexpr that doesn't compile with MSVC 2013 (slight readability hit). 2017-08-31 19:37:21 -05:00
Blake Martin
186db6691a Removed unnecessary temporary 2017-08-23 14:06:03 -05:00
Blake Martin
d8f2663e01 Removed a type-dependent false type that is no longer used. 2017-08-22 16:31:52 -05:00