Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OAI-RAN-5G-sheduler_MaxTBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MAQ5G-PFC
OAI-RAN-5G-sheduler_MaxTBS
Commits
f49489a6
Commit
f49489a6
authored
9 years ago
by
Cedric Roux
Browse files
Options
Downloads
Patches
Plain Diff
add _silent functions for gui/timeline.c, the way view/time.c uses it
requires those optimizations
parent
0cf4738d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/utils/T/tracer/gui/gui.h
+3
-0
3 additions, 0 deletions
common/utils/T/tracer/gui/gui.h
common/utils/T/tracer/gui/timeline.c
+29
-5
29 additions, 5 deletions
common/utils/T/tracer/gui/timeline.c
with
32 additions
and
5 deletions
common/utils/T/tracer/gui/gui.h
+
3
−
0
View file @
f49489a6
...
...
@@ -55,8 +55,11 @@ void textlist_get_line(gui *gui, widget *this, int line,
void
textlist_set_color
(
gui
*
gui
,
widget
*
this
,
int
line
,
int
color
);
void
timeline_clear
(
gui
*
gui
,
widget
*
this
);
void
timeline_clear_silent
(
gui
*
gui
,
widget
*
this
);
void
timeline_add_points
(
gui
*
gui
,
widget
*
this
,
int
subline
,
int
color
,
int
*
x
,
int
len
);
void
timeline_add_points_silent
(
gui
*
gui
,
widget
*
this
,
int
subline
,
int
color
,
int
*
x
,
int
len
);
void
timeline_set_subline_background_color
(
gui
*
gui
,
widget
*
this
,
int
subline
,
int
color
);
void
timeline_get_width
(
gui
*
gui
,
widget
*
this
,
int
*
width
);
...
...
This diff is collapsed.
Click to expand it.
common/utils/T/tracer/gui/timeline.c
+
29
−
5
View file @
f49489a6
...
...
@@ -97,7 +97,7 @@ widget *new_timeline(gui *_gui, int width, int number_of_sublines,
/* public functions */
/*************************************************************************/
void
timeline_clear
(
gui
*
_gui
,
widget
*
_this
)
static
void
_
timeline_clear
(
gui
*
_gui
,
widget
*
_this
,
int
silent
)
{
struct
gui
*
g
=
_gui
;
struct
timeline_widget
*
this
=
_this
;
...
...
@@ -110,13 +110,24 @@ void timeline_clear(gui *_gui, widget *_this)
for
(
j
=
0
;
j
<
this
->
s
[
i
].
width
;
j
++
)
this
->
s
[
i
].
color
[
j
]
=
-
1
;
send_event
(
g
,
DIRTY
,
this
->
common
.
id
);
if
(
silent
==
0
)
send_event
(
g
,
DIRTY
,
this
->
common
.
id
);
gunlock
(
g
);
}
void
timeline_add_points
(
gui
*
_gui
,
widget
*
_this
,
int
subline
,
int
color
,
int
*
x
,
int
len
)
void
timeline_clear
(
gui
*
_gui
,
widget
*
_this
)
{
_timeline_clear
(
_gui
,
_this
,
0
);
}
void
timeline_clear_silent
(
gui
*
_gui
,
widget
*
_this
)
{
_timeline_clear
(
_gui
,
_this
,
1
);
}
static
void
_timeline_add_points
(
gui
*
_gui
,
widget
*
_this
,
int
subline
,
int
color
,
int
*
x
,
int
len
,
int
silent
)
{
struct
gui
*
g
=
_gui
;
struct
timeline_widget
*
this
=
_this
;
...
...
@@ -129,11 +140,24 @@ void timeline_add_points(gui *_gui, widget *_this, int subline, int color,
this
->
s
[
subline
].
color
[
x
[
i
]]
=
color
;
}
send_event
(
g
,
DIRTY
,
this
->
common
.
id
);
if
(
silent
==
0
)
send_event
(
g
,
DIRTY
,
this
->
common
.
id
);
gunlock
(
g
);
}
void
timeline_add_points
(
gui
*
_gui
,
widget
*
_this
,
int
subline
,
int
color
,
int
*
x
,
int
len
)
{
_timeline_add_points
(
_gui
,
_this
,
subline
,
color
,
x
,
len
,
0
);
}
void
timeline_add_points_silent
(
gui
*
_gui
,
widget
*
_this
,
int
subline
,
int
color
,
int
*
x
,
int
len
)
{
_timeline_add_points
(
_gui
,
_this
,
subline
,
color
,
x
,
len
,
1
);
}
void
timeline_set_subline_background_color
(
gui
*
_gui
,
widget
*
_this
,
int
subline
,
int
color
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment