Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-and-itasks
clean-ide
Commits
b7c31f72
Commit
b7c31f72
authored
Mar 22, 2005
by
John van Groningen
Browse files
move system dependent code to module heap_profile_os_dependent
parent
1c1bd0df
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
HeapProfile/ShowHeapProfile.dcl
View file @
b7c31f72
...
@@ -13,7 +13,7 @@ empty_progstate :: PrintSetup -> *ProgState [.a];
...
@@ -13,7 +13,7 @@ empty_progstate :: PrintSetup -> *ProgState [.a];
::
SizeByNodeKindElem
::
SizeByNodeKindElem
p_open_file_function
::
{#
.
Char
}
*
a
->
*(
.
Bool
,{#
Char
},
ProgState
[
SizeByNodeKindElem
],*
a
)
|
FileEnv
a
;
p_open_file_function
::
{#
Char
}
*
a
->
*(
Bool
,{#
Char
},
ProgState
[
SizeByNodeKindElem
],*
a
)
|
FileEnv
a
;
draw_heap_profile_lines
::
[.
Int
]
.
Bool
[.
SizeByNodeKindElem
]
.
Int
.
Int
.
Int
.
Int
*
Picture
->
*
Picture
;
draw_heap_profile_lines
::
[.
Int
]
.
Bool
[.
SizeByNodeKindElem
]
.
Int
.
Int
.
Int
.
Int
*
Picture
->
*
Picture
;
...
...
HeapProfile/ShowHeapProfile.icl
View file @
b7c31f72
This diff is collapsed.
Click to expand it.
HeapProfile/heapprofiler.icl
View file @
b7c31f72
...
@@ -4,11 +4,9 @@ import StdEnv, StdIO
...
@@ -4,11 +4,9 @@ import StdEnv, StdIO
import
flexwin
import
flexwin
import
ExtNotice
import
ExtNotice
import
Help
import
Help
import
ShowHeapProfile
import
ShowHeapProfile
,
heap_profile_os_dependent
import
Platform
import
Platform
import
StdDebug
ApplicationName
:==
"ShowHeapProfile"
ApplicationName
:==
"ShowHeapProfile"
HelpFileName
:==
ApplicationName
+++
"Help"
HelpFileName
:==
ApplicationName
+++
"Help"
...
@@ -169,8 +167,8 @@ printfun recId ps
...
@@ -169,8 +167,8 @@ printfun recId ps
=
ps
=
ps
|
isNothing
reply
|
isNothing
reply
=
ps
=
ps
#
((
ok
,
print
F
ont
),
ps
)
=
accPIO
(
accScreenPicture
(
openFont
{
fName
=
"Courier New"
,
fStyles
=[
BoldStyle
],
fSize
=
8
}
))
ps
#
print
_f
ont
=
PCorMac
{
fName
=
"Courier New"
,
fStyles
=[
BoldStyle
],
fSize
=
8
}
{
fName
=
"Monaco"
,
fStyles
=[],
fSize
=
9
}
//
# ((ok,printFont),ps) = accPIO (accScreenPicture (openFont
{fName="Monaco",fStyles=[],fSize=9}
)) ps
#
((
ok
,
printFont
),
ps
)
=
accPIO
(
accScreenPicture
(
openFont
print_font
))
ps
|
not
ok
// handle better...
|
not
ok
// handle better...
=
ps
=
ps
=
case
(
fromJust
reply
)
of
=
case
(
fromJust
reply
)
of
...
...
Write
Preview
Supports
Markdown
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