Skip to content

Commit

Permalink
Adding heap profile data
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuernber committed Jul 28, 2021
1 parent 213779d commit 2ca000f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,21 @@ cljs.user> (ds/select-rows ds [1 3 5 7 9])
* See [testapp](testapp) for a minimal quick walkthrough and verification that
advanced optimizations do not break the api.

## Chrome Heap Measurements.


Be sure to include numbers in your measurements -


```clojure
testapp.webapp> (def ignored (aset js/window "AAAATyped" (ds/->dataset (repeatedly 1000 #(hash-map :time (rand) :temp (rand))))))
#'testapp.webapp/ignored
testapp.webapp> (def ignored (aset js/window "AAAANumber" (vec (repeatedly 1000 #(hash-map :time (rand) :temp (rand))))))
#'testapp.webapp/ignored
```

![heap profile](docs/images/memcmp.png)


## Gotchas

Expand Down Expand Up @@ -201,6 +216,11 @@ There is a test script - `scripts/run-tests` that does:

* scripts/install-local

## Talk About It

* [Zulip Data Science/tech.ml.dataset](https://clojurians.zulipchat.com/#narrow/stream/151924-data-science/topic/tech.2Eml.2Edataset)
* [Zulip tech.ml.dataset.dev](https://clojurians.zulipchat.com/#narrow/stream/236259-tech.2Eml.2Edataset.2Edev)

### License

* MIT
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{:paths ["src" "resources"]
{:paths ["src"]
;;We serialize datasets to transit-json
:deps {com.cognitect/transit-cljs {:mvn/version "0.8.269"}
techascent/tech.ml.dataset {:mvn/version "6.006"}
Expand Down
Binary file added docs/images/memcomp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2ca000f

Please sign in to comment.