Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
pub
frama-c
Commits
5c0142d8
Commit
5c0142d8
authored
3 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[Doc] add more Landmarks examples in devman
parent
1c3c2f62
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/developer/developer.tex
+1
-0
1 addition, 0 deletions
doc/developer/developer.tex
doc/developer/refman.tex
+13
-4
13 additions, 4 deletions
doc/developer/refman.tex
with
14 additions
and
4 deletions
doc/developer/developer.tex
+
1
−
0
View file @
5c0142d8
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
\usepackage
{
makeidx
}
\usepackage
{
makeidx
}
\usepackage
{
graphicx
}
\usepackage
{
graphicx
}
\usepackage
{
enumerate
}
\usepackage
{
enumerate
}
\usepackage
{
longtable
}
\usepackage
{
varwidth
}
\usepackage
{
varwidth
}
\usepackage
{
tikz
}
\usepackage
{
tikz
}
\usetikzlibrary
{
fit
}
\usetikzlibrary
{
fit
}
...
...
This diff is collapsed.
Click to expand it.
doc/developer/refman.tex
+
13
−
4
View file @
5c0142d8
...
@@ -841,8 +841,7 @@ to your needs. See \texttt{ocamlmerlin -help} for the list of flags.
...
@@ -841,8 +841,7 @@ to your needs. See \texttt{ocamlmerlin -help} for the list of flags.
\subsection
{
Pre-defined macros for tests commands
}
\label
{
sec:ptests-macros
}
\subsection
{
Pre-defined macros for tests commands
}
\label
{
sec:ptests-macros
}
Ptests pre-defines a certain number of macros for each test about to be run.
Ptests pre-defines a certain number of macros for each test about to be run.
Figure~
\ref
{
fig:ptests-macros
}
gives their definition.
Figure~
\ref
{
fig:ptests-macros
}
gives their definition.
\begin{figure}
[htbp]
\begin{longtable}
{
|p
{
4.5cm
}
|p
{
10cm
}
|
}
\begin{tabular}
{
|p
{
4.5cm
}
|p
{
10cm
}
|
}
\hline
\hline
Name
&
Expansion
\\
Name
&
Expansion
\\
\hline
\hline
...
@@ -897,9 +896,8 @@ one for regular tests (if more than one \verb|OPT|).\\
...
@@ -897,9 +896,8 @@ one for regular tests (if more than one \verb|OPT|).\\
\hline
\hline
\verb
|
frama-c-exe
|
&
set to the value of the
\verb
|
TOPLEVEL_PATH
|
variable from
\verb
|
./tests/ptests_config
|
file
\\
\verb
|
frama-c-exe
|
&
set to the value of the
\verb
|
TOPLEVEL_PATH
|
variable from
\verb
|
./tests/ptests_config
|
file
\\
\hline
\hline
\end{tabular}
\caption
{
Predefined macros for ptests
}
\label
{
fig:ptests-macros
}
\caption
{
Predefined macros for ptests
}
\label
{
fig:ptests-macros
}
\end{
figur
e}
\end{
longtabl
e}
\section
{
Profiling with Landmarks
}
\label
{
refman:landmarks
}
\codeidxdef
{
Landmarks
}
\section
{
Profiling with Landmarks
}
\label
{
refman:landmarks
}
\codeidxdef
{
Landmarks
}
...
@@ -937,6 +935,17 @@ For quick usage of the library:
...
@@ -937,6 +935,17 @@ For quick usage of the library:
Commonly used options include
\verb
+
output=landmarks.log
+
to output the result
Commonly used options include
\verb
+
output=landmarks.log
+
to output the result
to a file instead of
\texttt
{
stderr
}
.
to a file instead of
\texttt
{
stderr
}
.
To instrument a single file: add
\verb
+
[@@@landmark "auto"]
+
at the beginning
of the file.
To instrument a single function: add
\verb
+
[@landmark]
+
after the
\texttt
{
let
}
,
e.g.:
\begin{lstlisting}
let[@landmark] add
_
visitor vis =
\end{lstlisting}
Check
\url
{
https://github.com/LexiFi/landmarks
}
for its documentation.
Check
\url
{
https://github.com/LexiFi/landmarks
}
for its documentation.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...
...
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