docs: Add quick start contributing to perfetto
Change-Id: If0424aacaf065f80a78df5c4129ba533bee82301
diff --git a/docs/contributing/getting-started.md b/docs/contributing/getting-started.md
index 324c86b..a101f29 100644
--- a/docs/contributing/getting-started.md
+++ b/docs/contributing/getting-started.md
@@ -1,5 +1,70 @@
# Contributing to Perfetto
+## Quickstart
+
+NOTE: Perfetto can be built on Windows, Mac or Linux. However, setting up the environment on Windows is complicated so is not covered by this quickstart.
+
+Prerequisites: git and python3.
+
+Setup:
+```sh
+git clone https://android.googlesource.com/platform/external/perfetto/
+cd perfetto
+tools/install-build-deps
+tools/setup_all_configs.py
+```
+
+### Building
+
+#### On Linux
+
+For production:
+```sh
+tools/ninja -C out/linux_clang_release
+```
+
+For debug:
+```sh
+tools/ninja -C out/linux_clang_debug
+```
+
+#### On Mac
+
+For production:
+```sh
+tools/ninja -C out/mac_release
+```
+
+For debug:
+```sh
+tools/ninja -C out/mac_debug
+```
+
+### Contributing
+
+1. Create an account at [android.googlesource.com](https://android.googlesource.com/).
+2. Download `depot_tools`, a collection of helper scripts which make uploading changes to Android gerrit easier.
+```sh
+cd perfetto
+git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
+```
+3. Add `depot_tools` to your path:
+```sh
+depot_path="$(realpath depot_tools)"
+export PATH=$depot_path:$PATH
+```
+4. Create a branch with the change:
+```sh
+git new-branch first-contribution
+```
+5. Make change in the repo.
+5. Add and commit the change:
+```sh
+git add .
+git commit -m "My first contribution"
+git cl upload
+```
+
## Repository
This project uses [Android AOSP Gerrit][perfetto-gerrit] for code reviews,