# Pkg.add("Profile") fails with "Unknown package" in 0.6.2, Feb 2018

**URL:** https://discourse.julialang.org/t/pkg-add-profile-fails-with-unknown-package-in-0-6-2-feb-2018/8787
**Category:** General Usage
**Created:** [February 3, 2018, 12:11am UTC](https://discourse.julialang.org/t/pkg-add-profile-fails-with-unknown-package-in-0-6-2-feb-2018/8787 "2018-02-03T00:11:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ivo\_welch](https://avatars.discourse-cdn.com/v4/letter/i/d2c977/32.png) [@ivo\_welch](https://discourse.julialang.org/u/ivo_welch)
#### Post date: [February 3, 2018, 12:11am UTC](https://discourse.julialang.org/t/pkg-add-profile-fails-with-unknown-package-in-0-6-2-feb-2018/8787/1 "2018-02-03T00:11:11Z")

</div>

are the docs and/or packages broken?

[https://docs.julialang.org/en/latest/manual/profile/](https://docs.julialang.org/en/latest/manual/profile/)

suggests

```julia
julia> Pkg.add("Profile")
ERROR: unknown package Profile
macro expansion at ./pkg/entry.jl:53 [inlined]
(::Base.Pkg.Entry.##1#3{String,Base.Pkg.Types.VersionSet})() at ./task.jl:335
Stacktrace:
 [1] sync_end() at ./task.jl:287
 [2] macro expansion at ./task.jl:303 [inlined]
 [3] add(::String, ::Base.Pkg.Types.VersionSet) at ./pkg/entry.jl:51
 [4] (::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}})() at ./pkg/dir.jl:36
 [5] cd(::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}}, ::String) at ./file.jl:70
 [6] #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{String,N} where N) at ./pkg/dir.jl:36
 [7] add(::String) at ./pkg/pkg.jl:117

```

probably a simple beginner’s error, though…

---

<div class="post-metadata">

### Author: ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)
#### Post date: [February 3, 2018, 12:12am UTC](https://discourse.julialang.org/t/pkg-add-profile-fails-with-unknown-package-in-0-6-2-feb-2018/8787/2 "2018-02-03T00:12:54Z")

</div>

I don’t see where it suggests to do a `Pkg.add`. Just use it, no need to add it, it’s included in the Julia installation.

---

<div class="post-metadata">

### Author: ![ivo\_welch](https://avatars.discourse-cdn.com/v4/letter/i/d2c977/32.png) [@ivo\_welch](https://discourse.julialang.org/u/ivo_welch)
#### Post date: [February 3, 2018, 12:19am UTC](https://discourse.julialang.org/t/pkg-add-profile-fails-with-unknown-package-in-0-6-2-feb-2018/8787/3 "2018-02-03T00:19:01Z")

</div>

not in mine, mine being macOS.

```julia
julia> using Profile
ERROR: ArgumentError: Module Profile not found in current path.
Run `Pkg.add("Profile")` to install the Profile package.
Stacktrace:
 [1] _require(::Symbol) at ./loading.jl:435
 [2] require(::Symbol) at ./loading.jl:405

```

---

<div class="post-metadata">

### Author: ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)
#### Post date: [February 3, 2018, 4:49am UTC](https://discourse.julialang.org/t/pkg-add-profile-fails-with-unknown-package-in-0-6-2-feb-2018/8787/4 "2018-02-03T04:49:29Z")

</div>

Your link points to the docs for Julia master, i.e. the version that will eventually become 0.7, in which it will be necessary to do `using Profile`. On version 0.6 you can just do e.g. `Profile.clear()` without any imports. See [https://docs.julialang.org/en/stable/manual/profile/#Profiling-1](https://docs.julialang.org/en/stable/manual/profile/#Profiling-1)
