mirror of
https://github.com/GorgonMeducer/perf_counter.git
synced 2025-01-31 19:33:04 +08:00
update projects
This commit is contained in:
parent
973667be59
commit
a497270283
File diff suppressed because one or more lines are too long
@ -1,119 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
|
||||||
<ProjectGui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_guix.xsd">
|
|
||||||
|
|
||||||
<SchemaVersion>-6.1</SchemaVersion>
|
|
||||||
|
|
||||||
<Header>### uVision Project, (C) Keil Software</Header>
|
|
||||||
|
|
||||||
<PrjGuiSettings>
|
|
||||||
<LastAddFilePath></LastAddFilePath>
|
|
||||||
</PrjGuiSettings>
|
|
||||||
|
|
||||||
<ViewPool/>
|
|
||||||
|
|
||||||
<SECTreeCtrl>
|
|
||||||
<View>
|
|
||||||
<WinId>38003</WinId>
|
|
||||||
<ViewName>Registers</ViewName>
|
|
||||||
<TableColWidths>247 247</TableColWidths>
|
|
||||||
</View>
|
|
||||||
<View>
|
|
||||||
<WinId>346</WinId>
|
|
||||||
<ViewName>Code Coverage</ViewName>
|
|
||||||
<TableColWidths>1410 160</TableColWidths>
|
|
||||||
</View>
|
|
||||||
<View>
|
|
||||||
<WinId>204</WinId>
|
|
||||||
<ViewName>Performance Analyzer</ViewName>
|
|
||||||
<TableColWidths>1570</TableColWidths>
|
|
||||||
</View>
|
|
||||||
</SECTreeCtrl>
|
|
||||||
|
|
||||||
<TreeListPane>
|
|
||||||
<View>
|
|
||||||
<WinId>35141</WinId>
|
|
||||||
<ViewName>Event Statistics</ViewName>
|
|
||||||
<UserString></UserString>
|
|
||||||
<TableColWidths>200 50 700</TableColWidths>
|
|
||||||
</View>
|
|
||||||
<View>
|
|
||||||
<WinId>1506</WinId>
|
|
||||||
<ViewName>Symbols</ViewName>
|
|
||||||
<UserString></UserString>
|
|
||||||
<TableColWidths>106 106 106</TableColWidths>
|
|
||||||
</View>
|
|
||||||
<View>
|
|
||||||
<WinId>1936</WinId>
|
|
||||||
<ViewName>Watch 1</ViewName>
|
|
||||||
<UserString></UserString>
|
|
||||||
<TableColWidths>200 133 133</TableColWidths>
|
|
||||||
</View>
|
|
||||||
<View>
|
|
||||||
<WinId>1937</WinId>
|
|
||||||
<ViewName>Watch 2</ViewName>
|
|
||||||
<UserString></UserString>
|
|
||||||
<TableColWidths>200 133 133</TableColWidths>
|
|
||||||
</View>
|
|
||||||
<View>
|
|
||||||
<WinId>1935</WinId>
|
|
||||||
<ViewName>Call Stack + Locals</ViewName>
|
|
||||||
<UserString></UserString>
|
|
||||||
<TableColWidths>200 133 133</TableColWidths>
|
|
||||||
</View>
|
|
||||||
<View>
|
|
||||||
<WinId>2506</WinId>
|
|
||||||
<ViewName>Trace Data</ViewName>
|
|
||||||
<UserString></UserString>
|
|
||||||
<TableColWidths>75 135 130 95 70 230 200 150</TableColWidths>
|
|
||||||
</View>
|
|
||||||
<View>
|
|
||||||
<WinId>466</WinId>
|
|
||||||
<ViewName>Source Browser - *** Not Enabled ***</ViewName>
|
|
||||||
<UserString>500</UserString>
|
|
||||||
<TableColWidths>300</TableColWidths>
|
|
||||||
</View>
|
|
||||||
</TreeListPane>
|
|
||||||
|
|
||||||
<CompViewPool/>
|
|
||||||
|
|
||||||
<WindowSettings>
|
|
||||||
<LogicAnalizer>
|
|
||||||
<ShowLACursor>1</ShowLACursor>
|
|
||||||
<ShowSignalInfo>1</ShowSignalInfo>
|
|
||||||
<ShowCycles>0</ShowCycles>
|
|
||||||
<LeftSideBarSize>0</LeftSideBarSize>
|
|
||||||
<TimeBaseIndex>-1</TimeBaseIndex>
|
|
||||||
</LogicAnalizer>
|
|
||||||
</WindowSettings>
|
|
||||||
|
|
||||||
<WinLayoutEx>
|
|
||||||
<sActiveDebugView></sActiveDebugView>
|
|
||||||
<WindowPosition>
|
|
||||||
<length>44</length>
|
|
||||||
<flags>2</flags>
|
|
||||||
<showCmd>3</showCmd>
|
|
||||||
<MinPosition>
|
|
||||||
<xPos>-1</xPos>
|
|
||||||
<yPos>-1</yPos>
|
|
||||||
</MinPosition>
|
|
||||||
<MaxPosition>
|
|
||||||
<xPos>-1</xPos>
|
|
||||||
<yPos>-1</yPos>
|
|
||||||
</MaxPosition>
|
|
||||||
<NormalPosition>
|
|
||||||
<Top>15</Top>
|
|
||||||
<Left>-6</Left>
|
|
||||||
<Right>1147</Right>
|
|
||||||
<Bottom>995</Bottom>
|
|
||||||
</NormalPosition>
|
|
||||||
</WindowPosition>
|
|
||||||
<MDIClientArea>
|
|
||||||
<RegID>0</RegID>
|
|
||||||
<MDITabState>
|
|
||||||
<Len>259</Len>
|
|
||||||
<Data>01000000040000000100000001000000010000000100000000000000020000000000000001000000010000000000000028000000280000000100000001000000000000000100000037453A5C53564E5C70726F6A656374735C4D43555C706572665F636F756E7465725F6C6962726172795C706572665F636F756E7465722E63000000000E706572665F636F756E7465722E6300000000C5D4F200FFFFFFFF0100000010000000C5D4F200FFDC7800BECEA100F0A0A100BCA8E1009CC1B600F7B88600D9ADC200A5C2D700B3A6BE00EAD6A300F6FA7D00B5E99D005FC3CF00C1838300CACAD500010000000000000002000000FC01000066000000000A000095040000</Data>
|
|
||||||
</MDITabState>
|
|
||||||
</MDIClientArea>
|
|
||||||
</WinLayoutEx>
|
|
||||||
|
|
||||||
</ProjectGui>
|
|
Binary file not shown.
@ -35,9 +35,9 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
#define __PERF_COUNTER_VER_MAJOR__ 1
|
#define __PERF_COUNTER_VER_MAJOR__ 1
|
||||||
#define __PERF_COUNTER_VER_MINOR__ 9
|
#define __PERF_COUNTER_VER_MINOR__ 9
|
||||||
#define __PERF_COUNTER_VER_REVISE__ 8
|
#define __PERF_COUNTER_VER_REVISE__ 9
|
||||||
|
|
||||||
#define __PERF_COUNTER_VER_STR__ "rel"
|
#define __PERF_COUNTER_VER_STR__ "dev"
|
||||||
|
|
||||||
#define __PER_COUNTER_VER__ (__PERF_COUNTER_VER_MAJOR__ * 10000ul \
|
#define __PER_COUNTER_VER__ (__PERF_COUNTER_VER_MAJOR__ * 10000ul \
|
||||||
+__PERF_COUNTER_VER_MINOR__ * 100ul \
|
+__PERF_COUNTER_VER_MINOR__ * 100ul \
|
||||||
|
Binary file not shown.
@ -286,11 +286,7 @@ __STATIC_INLINE int32_t check_systick(void)
|
|||||||
return nTemp;
|
return nTemp;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__IS_COMPILER_IAR__)
|
|
||||||
__attribute__((constructor))
|
__attribute__((constructor))
|
||||||
#else
|
|
||||||
__attribute__((constructor(255)))
|
|
||||||
#endif
|
|
||||||
void __perf_counter_init(void)
|
void __perf_counter_init(void)
|
||||||
{
|
{
|
||||||
init_cycle_counter(true);
|
init_cycle_counter(true);
|
||||||
@ -332,6 +328,18 @@ void delay_ms(int32_t nMs)
|
|||||||
while(get_system_ticks() < lUs);
|
while(get_system_ticks() < lUs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__attribute__((noinline))
|
||||||
|
int64_t get_system_ticks(void)
|
||||||
|
{
|
||||||
|
int64_t lTemp = 0;
|
||||||
|
|
||||||
|
__IRQ_SAFE {
|
||||||
|
lTemp = check_systick() + s_lSystemClockCounts;
|
||||||
|
}
|
||||||
|
|
||||||
|
return lTemp;
|
||||||
|
}
|
||||||
|
|
||||||
/*! \note the prototype of this clock() is different from the one defined in
|
/*! \note the prototype of this clock() is different from the one defined in
|
||||||
*! time.h. As clock_t is usually defined as unsigned int, it is
|
*! time.h. As clock_t is usually defined as unsigned int, it is
|
||||||
*! not big enough in Cortex-M system to hold a time-stamp. clock()
|
*! not big enough in Cortex-M system to hold a time-stamp. clock()
|
||||||
@ -359,26 +367,7 @@ __attribute__((nothrow))
|
|||||||
__attribute__((noinline))
|
__attribute__((noinline))
|
||||||
int64_t clock(void)
|
int64_t clock(void)
|
||||||
{
|
{
|
||||||
int64_t lTemp = 0;
|
return get_system_ticks();
|
||||||
|
|
||||||
__IRQ_SAFE {
|
|
||||||
lTemp = check_systick() + s_lSystemClockCounts;
|
|
||||||
}
|
|
||||||
|
|
||||||
return lTemp;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
__attribute__((noinline))
|
|
||||||
int64_t get_system_ticks(void)
|
|
||||||
{
|
|
||||||
int64_t lTemp = 0;
|
|
||||||
|
|
||||||
__IRQ_SAFE {
|
|
||||||
lTemp = check_systick() + s_lSystemClockCounts;
|
|
||||||
}
|
|
||||||
|
|
||||||
return lTemp;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t get_system_ms(void)
|
int32_t get_system_ms(void)
|
||||||
@ -392,7 +381,6 @@ int32_t get_system_ms(void)
|
|||||||
return nTemp;
|
return nTemp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
__WEAK
|
__WEAK
|
||||||
task_cycle_info_t * get_rtos_task_cycle_info(void)
|
task_cycle_info_t * get_rtos_task_cycle_info(void)
|
||||||
{
|
{
|
||||||
|
@ -35,9 +35,9 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
#define __PERF_COUNTER_VER_MAJOR__ 1
|
#define __PERF_COUNTER_VER_MAJOR__ 1
|
||||||
#define __PERF_COUNTER_VER_MINOR__ 9
|
#define __PERF_COUNTER_VER_MINOR__ 9
|
||||||
#define __PERF_COUNTER_VER_REVISE__ 8
|
#define __PERF_COUNTER_VER_REVISE__ 9
|
||||||
|
|
||||||
#define __PERF_COUNTER_VER_STR__ "rel"
|
#define __PERF_COUNTER_VER_STR__ "dev"
|
||||||
|
|
||||||
#define __PER_COUNTER_VER__ (__PERF_COUNTER_VER_MAJOR__ * 10000ul \
|
#define __PER_COUNTER_VER__ (__PERF_COUNTER_VER_MAJOR__ * 10000ul \
|
||||||
+__PERF_COUNTER_VER_MINOR__ * 100ul \
|
+__PERF_COUNTER_VER_MINOR__ * 100ul \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user