Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lehrstuhl für Informatik 4 (Systemsoftware)
manycore
emper
Merge requests
!158
Add WorkerLocalData and use it for stats
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add WorkerLocalData and use it for stats
flow/emper:improve-stats
into
master
Overview
0
Commits
4
Pipelines
14
Changes
27
Merged
Florian Schmaus
requested to merge
flow/emper:improve-stats
into
master
4 years ago
Overview
0
Commits
4
Pipelines
14
Changes
27
Expand
0
0
Merge request reports
Compare
master
version 13
00115493
4 years ago
version 12
396ea1d6
4 years ago
version 11
7a2a117c
4 years ago
version 10
bb4c031d
4 years ago
version 9
cdd4b6fe
4 years ago
version 8
81aca987
4 years ago
version 7
276076d4
4 years ago
version 6
95d1b983
4 years ago
version 5
dacb0748
4 years ago
version 4
abb7ee8d
4 years ago
version 3
50d0c336
4 years ago
version 2
1215fc20
4 years ago
version 1
947c8555
4 years ago
master (base)
and
latest version
latest version
ead5318d
4 commits,
4 years ago
version 13
00115493
4 commits,
4 years ago
version 12
396ea1d6
4 commits,
4 years ago
version 11
7a2a117c
3 commits,
4 years ago
version 10
bb4c031d
3 commits,
4 years ago
version 9
cdd4b6fe
3 commits,
4 years ago
version 8
81aca987
4 commits,
4 years ago
version 7
276076d4
3 commits,
4 years ago
version 6
95d1b983
3 commits,
4 years ago
version 5
dacb0748
2 commits,
4 years ago
version 4
abb7ee8d
2 commits,
4 years ago
version 3
50d0c336
1 commit,
4 years ago
version 2
1215fc20
1 commit,
4 years ago
version 1
947c8555
1 commit,
4 years ago
27 files
+
255
−
213
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
27
Search (e.g. *.vue) (Ctrl+P)
emper/strategies/laws/LawsDispatcher.cpp
+
6
−
6
Options
@@ -2,13 +2,13 @@
// Copyright © 2020-2021 Florian Schmaus
#include
"LawsDispatcher.hpp"
#include
<atomic>
// for atomic, memory_order_relaxed
#include
"Common.hpp"
// for DIE_MSG
#include
"Emper.hpp"
#include
"LawsStrategy.hpp"
// for LawsStrategy, LawsStrategy::FiberSource
#include
"NextFiberResult.hpp"
#include
"Runtime.hpp"
#include
"emper-common.h"
#include
"strategies/laws/LawsWorkerStats.hpp"
void
LawsDispatcher
::
recycle
(
Fiber
*
fiber
)
{
// If the ref count has not reached zero yet, do not recycle the
@@ -36,16 +36,16 @@ void LawsDispatcher::dispatchLoop() {
auto
fiberSource
=
static_cast
<
LawsStrategy
::
FiberSource
>
(
next
.
metadata
);
switch
(
fiberSource
)
{
case
LawsStrategy
::
FiberSource
::
fromPriority
:
l
awsStrategy
.
dispatchedFiberFromPriority
.
fetch_add
(
1
,
std
::
memory_order_relaxed
)
;
L
awsStrategy
::
stats
.
dispatchedFiber
s
FromPriority
++
;
break
;
case
LawsStrategy
::
FiberSource
::
local
:
l
awsStrategy
.
dispatchedFiberFromLocal
.
fetch_add
(
1
,
std
::
memory_order_relaxed
)
;
L
awsStrategy
::
stats
.
dispatchedFiber
s
FromLocal
++
;
break
;
case
LawsStrategy
::
FiberSource
::
stolen
:
l
awsStrategy
.
dispatchedFiberStolen
.
fetch_add
(
1
,
std
::
memory_order_relaxed
)
;
L
awsStrategy
::
stats
.
dispatchedFiber
s
Stolen
++
;
break
;
case
LawsStrategy
::
FiberSource
::
anywhereQueue
:
l
awsStrategy
.
dispatchedFiberFromAnywhere
.
fetch_add
(
1
,
std
::
memory_order_relaxed
)
;
L
awsStrategy
::
stats
.
dispatchedFiber
s
FromAnywhere
Queue
++
;
break
;
default:
DIE_MSG
(
"Unknown fiber source: "
<<
next
.
metadata
);
Loading