Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
metering
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
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
Daniel Kochmański
metering
Commits
c32b47aa
Commit
c32b47aa
authored
8 years ago
by
Daniel Kochmański
Browse files
Options
Downloads
Patches
Plain Diff
fix consing for ecl
parent
b9301fe2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
metering.cl
+2
-16
2 additions, 16 deletions
metering.cl
with
2 additions
and
16 deletions
metering.cl
+
2
−
16
View file @
c32b47aa
...
...
@@ -109,22 +109,8 @@
`
(
the
consing-type
(
ccl::total-bytes-allocated
)))
#+
ecl
;; ECL has to compile the inlined C-code, otherwise it gets the generic
;; definition.
(
eval-when
(
eval
)
(
warn
"No consing will be reported unless the package is compiled."
)
(
defmacro
get-cons
()
(
defmacro
get-cons
()
'
(
the
consing-type
0
))))
#+
ecl
;; ECL has to compile the inlined C-code, otherwise it gets the generic
;; definition.
(
eval-when
(
compile
load
)
(
defmacro
get-cons
()
`
(
the
consing-type
(
ffi:c-inline
()
()
:object
"ecl_make_unsigned_integer(GC_get_total_bytes())"
:one-liner
t
))))
(
defmacro
get-cons
()
`
(
the
consing-type
(
si:gc-stats
nil
)))
#+
sbcl
(
defmacro
get-cons
()
...
...
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