Victor Zarubkin
e600c2f5cd
begin/end time for Linux too
2016-09-24 00:15:33 +03:00
Victor Zarubkin
c96a8c3a18
(profiler_core) Added "ThreadFinished" event
2016-09-23 23:51:49 +03:00
Victor Zarubkin
30de452113
Trying to fix problem with c++11 magic statics (there is no support for visual studio 2013 and earlier, gcc < 4.3 and clang < 2.9);
...
Wrapped "final" keyword for different compilers support;
Block descriptors now stored in unordered_map to make it easy to control theirs visibility level and to make it safe to unload dll/so during application execution.
2016-09-22 23:06:43 +03:00
Victor Zarubkin
d6269f17fe
Merge branch 'develop' of https://github.com/yse/easy_profiler into develop
2016-09-20 22:57:52 +03:00
Victor Zarubkin
e49b6179ef
New flexible block statuses instead of ENABLED, DISABLED: OFF, ON, FORCE_ON, OFF_RECURSIVE, ON_WITHOUT_CHILDREN, FORCE_ON_WITHOUT_CHILDREN
2016-09-20 22:57:34 +03:00
Sergey Yagovtsev
4c73886233
common code for linux and windows
2016-09-20 00:57:47 +03:00
Sergey Yagovtsev
85e7145bf1
Merge commit
2016-09-18 19:02:12 +03:00
Victor Zarubkin
b81779eaf6
refactoring
2016-09-17 15:37:16 +03:00
Victor Zarubkin
34bb8d8119
(profiler_core) Fixed potential problem with unloading dll/so during application work
2016-09-17 11:10:25 +03:00
Sergey Yagovtsev
52a9862963
Correct receiving
2016-09-16 02:11:11 +03:00
Sergey Yagovtsev
f4676ced6f
sleep for 1 second
2016-09-16 01:37:50 +03:00
Sergey Yagovtsev
4b71a64363
Merge commit
2016-09-16 00:53:27 +03:00
Sergey Yagovtsev
d5f6aa94b1
Add checking for empty sync list.
...
(cherry picked from commit ef60d553c064341ab714a79e8e12d5363b35081e)
2016-09-16 00:19:03 +03:00
Sergey Yagovtsev
ef60d553c0
Add checking for empty sync list.
2016-09-15 23:30:36 +03:00
Victor Zarubkin
4a40872183
(profiler_core) Added possibility to control event tracing priority level and to enable/disable event tracing at all.
2016-09-15 23:15:07 +03:00
Sergey Yagovtsev
61589c1154
Merge commit
2016-09-15 22:49:56 +03:00
Victor Zarubkin
f0ee9215bd
Warnings fix
2016-09-14 23:34:56 +03:00
Victor Zarubkin
795d347d2a
Linux build
2016-09-14 23:23:09 +03:00
Sergey Yagovtsev
80892e636e
Receive by EasySocket
2016-09-14 22:04:15 +03:00
Victor Zarubkin
1b33ad788d
(profiler_core) Further work with run-time enable/disable blocks;
...
(profiler_core) Fixed bug with memory corruption in chunk_allocator;
(profiler_core) Event tracing now gathering info about process which owns thread;
(profiler_core) Thread names are stored before other blocks now;
(profiler_core) Removed unused block types: context switch and thread sign;
(profiler_core) Added some description for API;
(profiler_gui) Context switch events now painted in different colors: red = switch to another process, coral = switch to registered thread in the same process, black = switch to kernel mode (thread id == 0).
(profiler_gui) Added popup windows with information about context-switch or block under mouse cursor;
2016-09-13 23:03:01 +03:00
Sergey Yagovtsev
6d6ad61a18
Add connect button
2016-09-13 21:42:38 +03:00
Sergey Yagovtsev
3181b867b1
Windows socket connection
2016-09-12 22:10:45 +03:00
Sergey Yagovtsev
0fe6690545
Add server function for EasySock
2016-09-12 21:28:15 +03:00
Sergey Yagovtsev
0a98d032d0
Windows almost work
2016-09-11 18:23:47 +03:00
Victor Zarubkin
d5d75d6340
(profiler_core) Further work with real-time enable/disable of blocks;
...
(profiler_core) Optimized storeBlock() algorithm, removed unnecessary std::vector;
(profiler_core) Writing to std::stringstream and then to file (prepare for streaming over WAN/LAN);
(profiler_core) Moved hached_cstr into separate header.
2016-09-11 16:57:35 +03:00
Victor Zarubkin
9294ddb61b
(profiler_core) Prepare for blocks enable/disable;
...
(profiler_core) Changed order of read/write of context switches as a preparation work to statistics gathering taking into account context switches duration.
2016-09-09 00:09:47 +03:00
Sergey Yagovtsev
f95d88bb1a
Add interface for EasySocket
2016-09-08 23:34:04 +03:00
Sergey Yagovtsev
a422f69deb
More stability in networking
2016-09-08 23:15:01 +03:00
Sergey Yagovtsev
20d3fb47a6
First steps in network. Work on linux
2016-09-08 21:03:40 +03:00
Sergey Yagovtsev
1edb71a6eb
Minor style fix
2016-09-07 22:25:32 +03:00
Victor Zarubkin
68bbd0eef3
Merge branch 'event_tracing' of https://github.com/yse/easy_profiler into event_tracing
2016-09-07 21:52:40 +03:00
Victor Zarubkin
6e845eece2
Using Google Material Design colors;
...
* At last, fixed bug with text paint on very large scene scale. Now you can scale the scene up to 10 ns scale!
2016-09-07 21:48:50 +03:00
Sergey Yagovtsev
cd39507389
Replace tab to whitespaces
2016-09-07 21:32:14 +03:00
Victor Zarubkin
3699a07e41
Merge branch 'event_tracing' of https://github.com/yse/easy_profiler into event_tracing
...
# Conflicts:
# src/profile_manager.cpp
2016-09-06 23:07:56 +03:00
Victor Zarubkin
10bb3da45b
(profiler_core) !! Non-blocking API using Thread-Local-Storage (threal_local or __declspec(thread) or __thread)
2016-09-06 23:03:05 +03:00
Sergey Yagovtsev
ede383be3c
Add licence text to some file
2016-09-06 22:15:50 +03:00
Victor Zarubkin
31705d5daf
(profiler_core) Better way of declaring generic stack
2016-09-06 22:00:53 +03:00
Victor Zarubkin
e4db8cabe4
(profiler_core) Measure core functions work time
2016-09-06 21:52:56 +03:00
Victor Zarubkin
33946770bb
(profiler_core) Windows build fix
2016-09-06 00:22:26 +03:00
Sergey Yagovtsev
9521f8ac02
Store context switch timestamp on linux.
...
It's need to run systemtap util for loading kernel module. This kernel module capture context switch timestamp and systemtap store it in the temp file.
Before running profiling application you should run systemtap script with root privileges as following:
\# stap -o /tmp/cs_profiling_info.log scripts/context_switch_logger.stp name APPLICATION_NAME
where APPLICATION_NAME is profiling application
2016-09-05 22:11:03 +03:00
Victor Zarubkin
f5ed51e13a
Event tracing fixes! Now working :)
2016-09-04 19:35:58 +03:00
Victor Zarubkin
05b56dcec0
First debuggable version of system event tracing for visualizing thread context switches
2016-09-04 14:48:35 +03:00
Victor Zarubkin
71f95f2c87
(profiler_core) Simplifying API: there are ~1.5 times lower macros number for using profiler.
2016-08-28 23:40:23 +03:00
Victor Zarubkin
4ff13053ec
Remastering profiler API. Fixed read/write
2016-08-28 21:06:23 +03:00
Victor Zarubkin
aa0d96d0e6
Remastering profiler API. All projects are compiled successfully, but there is an error occured during read/write .prof file
2016-08-28 18:22:45 +03:00
Victor Zarubkin
439e1cfb44
Remastering profiler API (not compiling yet)
2016-08-28 02:41:02 +03:00
Victor Zarubkin
3e1b8ce46f
(profiler core) The right way of avoiding static analyzer warnings ^_^ No need to insert unnecessary checks
2016-08-21 14:46:16 +03:00
Sergey Yagovtsev
9f6ca63440
(profiler core) fix clang static analyzer warnings
2016-08-19 00:35:45 +03:00
Victor Zarubkin
8c53d65362
(profiler core) Remove clang warning. Remove useless 2 bytes in memory per block
2016-08-14 23:13:18 +03:00
Victor Zarubkin
197a585307
(profiler core) Warning: .prof file format changed! New SerializedBlock format, less allocations and copy, only single allocation in fillTreesFromFile(). Memory consumption reduced. Also speed up statistics gathering by moving calculations into several threads.
2016-08-14 22:22:44 +03:00