Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B-ASIC - Better ASIC Toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Computer Engineering
B-ASIC - Better ASIC Toolbox
Merge requests
!433
More deterministic sorting of processes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
More deterministic sorting of processes
sortprocess
into
master
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Oscar Gustafsson
requested to merge
sortprocess
into
master
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
03ecf153
1 commit,
1 year ago
2 files
+
17
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
b_asic/process.py
+
11
−
3
Options
@@ -30,9 +30,17 @@ class Process:
self
.
_name
=
name
def
__lt__
(
self
,
other
):
return
self
.
_start_time
<
other
.
start_time
or
(
self
.
_start_time
==
other
.
start_time
and
self
.
execution_time
>
other
.
execution_time
return
(
self
.
_start_time
<
other
.
start_time
or
(
self
.
_start_time
==
other
.
start_time
and
self
.
execution_time
>
other
.
execution_time
)
or
(
# Sorting on name to possibly get deterministic behavior
self
.
_start_time
==
other
.
start_time
and
self
.
execution_time
==
other
.
execution_time
and
self
.
_name
<
other
.
name
)
)
@property
Loading