diff --git a/help/C/profiling.page b/help/C/profiling.page index 64d6b067..b2780916 100644 --- a/help/C/profiling.page +++ b/help/C/profiling.page @@ -39,29 +39,6 @@ results for more guidance.

-
- - - - Profile an existing process -

With Sysprof, you can profile one or more existing -processes on your system. First, select the profiling target -button next to the Record button. Select Existing Process -in the popover that is displayed. Next, select as many processes as you'd -like to profile. Processes selected for profiling will have a checkmark -next to their name.

- -

After selecting your target processes, click the Record -button to start profiling.

- -

When you have completed, click the Record button again -to stop profiling.

- -

See interpreting -results for more guidance.

- -
-
@@ -69,9 +46,10 @@ results for more guidance.

Profile a new process

Often times, you may need to spawn a new process to profile. -First, select the profiling target button next to the -Record button. Next, select New Process and fill -out the necessary information to spawn the process.

+First, select the Application button next at the top of the +reocrding window. Fill in your command and working directory, and optionally +specify any environment variables you need. Your process will be started +when recording begins.

If you are spawning a process that requires access to your current @@ -92,10 +70,7 @@ command line tool. When run without any arguments, it will record your entire system and save the output to capture.syscap. This file can be opened with the Sysprof application to view the callgraph.

-

You can also attach to an existing process using -sysprof-cli -p pid.

- -

If you would like to spawn a new process, use sysprof-cli -c +

If you would like to spawn a new process, use sysprof-cli -- 'command' to specify a command to be launched. The command will inherit the current environment.

@@ -126,11 +101,8 @@ stacktrace.

On the right, are all of the decendants of a selected function. You can select a function either from the functions list, or the callers list.

-

You can jump into a function by activating a row in the tree of descendants -with a double-click or by pressing Enter or Spacebar.

- -

If you see - - kernel - - in your results, that means that the +

If you see - - Context Switch - - in your results, that means that the application transitioned into or from the Linux kernel. There can be many reasons for this such as a syscall or signal.