Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
d3b7db04
Commit
d3b7db04
authored
Jan 29, 2016
by
thomie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the Windows build
parent
61e4d6b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
compiler/ghci/GHCi.hs
compiler/ghci/GHCi.hs
+1
-0
rts/ProfHeap.c
rts/ProfHeap.c
+1
-1
rts/Profiling.c
rts/Profiling.c
+1
-1
No files found.
compiler/ghci/GHCi.hs
View file @
d3b7db04
...
...
@@ -70,6 +70,7 @@ import System.Exit
import
Data.Maybe
import
GHC.IO.Handle.Types
(
Handle
)
#
ifdef
mingw32_HOST_OS
import
Foreign.C
import
GHC.IO.Handle.FD
(
fdToHandle
)
#
else
import
System.Posix
as
Posix
...
...
rts/ProfHeap.c
View file @
d3b7db04
...
...
@@ -515,7 +515,7 @@ fprint_ccs(FILE *fp, CostCentreStack *ccs, nat max_length)
return
;
}
fprintf
(
fp
,
"(%
ld
)"
,
ccs
->
ccsID
);
fprintf
(
fp
,
"(%
"
FMT_Int
"
)"
,
ccs
->
ccsID
);
p
=
buf
;
buf_end
=
buf
+
max_length
+
1
;
...
...
rts/Profiling.c
View file @
d3b7db04
...
...
@@ -951,7 +951,7 @@ logCCS(CostCentreStack *ccs, nat indent,
max_module_len
-
strlen_utf8
(
cc
->
module
),
""
);
fprintf
(
prof_file
,
" %*
ld
%11"
FMT_Word64
" %5.1f %5.1f %5.1f %5.1f"
,
" %*
"
FMT_Int
"
%11"
FMT_Word64
" %5.1f %5.1f %5.1f %5.1f"
,
max_id_len
,
ccs
->
ccsID
,
ccs
->
scc_count
,
total_prof_ticks
==
0
?
0
.
0
:
((
double
)
ccs
->
time_ticks
/
(
double
)
total_prof_ticks
*
100
.
0
),
total_alloc
==
0
?
0
.
0
:
((
double
)
ccs
->
mem_alloc
/
(
double
)
total_alloc
*
100
.
0
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment