Herman Chen
96e86a6f19
[mpp_time]: Add stopwatch for object timing trace
...
Work flow and usage:
1. mpp_stopwatch_get
2. mpp_stopwatch_set_show_on_exit
3. mpp_stopwatch_record
...
mpp_stopwatch_record
4. mpp_stopwatch_put - (show timing here)
Change-Id: Ib07c925e6c27b94842507dba71992725b3ff5db8
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
2020-09-08 09:05:59 +08:00
Herman Chen
16047eb224
[mpp_time]: Add AUTO_TIMING for C++ function
...
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
Change-Id: I1ec9f6307dce44f7aa086911477b27e523904cdc
2020-04-29 16:06:47 +08:00
Shunqian Zheng
9464af395b
[misc]: Terminate soc_name to fix out of bounds
...
1. Terminate soc_name string to fix memory out of bounds
2. Fix all snprintf/strnlen warning
Change-Id: I4525c6e289a00d1509bc30ee69545d92f2f4b9cb
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com >
2020-04-29 16:06:47 +08:00
Herman Chen
ed9d04e760
[mpp_time]: Add loop timer with callback
...
This function is mainly for frame rate statistic.
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
Change-Id: I1ab790bd655dc0945ad958d104ff178f4ffabdbe
2020-04-09 16:47:50 +08:00
Herman Chen
b83158b23b
[mpp_time]: Change old timer to clock
...
The MppClock is used to record and sum the time only.
The MppTimer will have new implement.
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
Change-Id: I6cace6968d50db611e7493b69b14b46853070d78
2020-04-04 16:06:01 +08:00
Herman Chen
b81b3e52cd
[mpp]: Fix compiling error on Linux
...
Issue: https://github.com/rockchip-linux/mpp/issues/48
Change-Id: I08bc75a4cab23d4b96c6bac3b671e50edbff55fb
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
2018-08-07 08:56:00 +08:00
Herman Chen
26889a7bce
[mpp_time]: Add MppTimer for time recording
...
Change-Id: I3d04e677415ae84bc37703cb63a52be66c973798
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
2018-07-06 16:30:11 +08:00
Herman Chen
c71ed0cb96
[osal]: Make mpp_time_diff string to const char *
...
Change-Id: I20f3c65ccbea28bb01e1f739a1d31bf3c5ae936e
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
2018-07-02 17:29:15 +08:00
Herman Chen
ed4151e245
[osal]: Change time function
...
Change time function from gettimeofday to clock_gettime.
Output of mpp_time() is still in us.
Change-Id: I7f961bb7bb4007e8e42ae5358bd7f568edf6c3d0
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
2018-03-23 09:20:56 +08:00
Randy Li
e6ade9b712
[mpp_dec]: remove obsoleted code and format comments
...
It would be more easy to look into those code next time.
The functions in mpp_time.c have removed the internal debug
flag checking.
Change-Id: I6392190896f74e86a8407f06fa3621dd92371e56
Signed-off-by: Randy Li <randy.li@rock-chips.com >
2017-08-03 16:21:13 +08:00
Herman Chen
2c3c72a815
[osal]: Change mpp time print to us
...
Change-Id: Ifd73aad1e3b65b44a8d7e284647c065fde66ca98
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
2017-06-27 09:44:40 +08:00
Lin Kesheng
60373a6973
[all]: format code
...
use fromdos to change file type, remove ^M in code.
Change-Id: I000202dc51fcff57cc0771455baebea595115b1d
Signed-off-by: Lin Kesheng <lks@rock-chips.com >
2016-09-08 15:21:02 +08:00
ChenHengming
e179717e0b
[mpp]: update mpp debug log
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1124 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-28 11:52:51 +00:00
ChenHengming
c0866a76f9
[comment]: fix company name hand writing error
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@906 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-06-13 09:42:31 +00:00
ChenHengming
028ebc655c
[mpp_time]: add limit mpp time diff print
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@491 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-12-02 14:44:06 +00:00
ChenHengming
3b510f1124
[osal]: fix time calc error
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@487 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-11-25 16:16:30 +00:00
ChenHengming
1265c7f173
[osal]: add time differ function
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@486 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-11-25 15:30:58 +00:00
ChenHengming
c35cc7d345
[osal]: rename mpp_malloc to mpp_mem, add mpp_time function
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@63 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-07 10:15:24 +00:00