Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orbea
Tor
Commits
90bb4872
Commit
90bb4872
authored
5 years ago
by
Roger Dingledine
Browse files
Options
Downloads
Patches
Plain Diff
go in to fix one typo, end up fixing more
parent
1bf377f4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/HACKING/HelpfulTools.md
+4
-4
4 additions, 4 deletions
doc/HACKING/HelpfulTools.md
with
4 additions
and
4 deletions
doc/HACKING/HelpfulTools.md
+
4
−
4
View file @
90bb4872
...
...
@@ -251,16 +251,16 @@ Now you can run Tor with profiling enabled, and use the pprof utility to look at
performance! See the gperftools manual for more info, but basically:
2.
Run
`env CPUPROFILE=/tmp/profile src/app/tor -f <path/torrc>`
. The profile file
is not written to until Tor finishes execu
c
tion.
is not written to until Tor finishes execution.
3.
Run
`pprof src/app/tor /tm/profile`
to start the REPL.
3.
Run
`pprof src/app/tor /tm
p
/profile`
to start the REPL.
Generating and analyzing a callgraph
------------------------------------
0.
Build Tor on linux or mac, ideally with -O0 or -fno-inline.
1.
Clone 'https://git
web
.torproject.org/user/nickm/calltool.git/' .
1.
Clone 'https://git.torproject.org/user/nickm/calltool.git/' .
Follow the README in that repository.
Note that currently the callgraph generator can't detect calls that pass
...
...
@@ -396,7 +396,7 @@ source code. Here's how to use it:
6.
See the Doxygen manual for more information; this summary just
scratches the surface.
Style and best-pratices checking
Style and best-pra
c
tices checking
--------------------------------
We use scripts to check for various problems in the formatting and style
...
...
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