Ask / Submit

installing perf profiler on sailfish os

asked 2017-12-20 22:54:10 +0200

Ivan Sorokin gravatar image

updated 2017-12-20 23:10:33 +0200

While troubleshooting some lags ( I thought that the easiest way to get the cause of the lags is to use perf. My phone model is Jolla 1.

Is there an easy way of installing perf on Sailfish OS?

I tried to use pkcon.

$ pkcon search name perf Available kernel-adaptation-sbj-perf- Linux profiling with performance counters

But trying installing it shows an error:

$ pkcon install kernel-adaptation-sbj-perf Installing
Waiting in queue
Refreshing software list
Resolving dependencies
Fatal error: kernel-adaptation-sbj-perf- requires, but this requirement cannot be provided

edit retag flag offensive close delete


@Ivan Sorokin

In terminal, type in; pkcon search name kernel-adaptation-sbj-perf - when I do this, it shows a later version than what you are showing - the newer version is; - I don't know if this will take care of the dependency or not.

Edz ( 2017-12-21 00:09:14 +0200 )edit

Hm, in my case only is shown. Is your device Jolla 1 too?

Ivan Sorokin ( 2017-12-21 10:36:23 +0200 )edit

@Ivan Sorokin - do pkcon refresh then search again. Yes, I'm also using Jolla1

Edz ( 2017-12-21 11:46:20 +0200 )edit

@Edz Although I was sure I did pkcon refresh before I did pkcon search, doing another pkcon refresh updated the package to the same version as yours. Now it installs flawlessly. Thank you. Could you submit an answer so I can accept it?

Ivan Sorokin ( 2017-12-26 01:21:39 +0200 )edit

@Edz perf tries to use less internally. I haven't found it by pkcon search. I tried installing zless hoping that it will pull less as a dependency. Unfortunately the message I get was: "Fatal error: nothing provides /usr/bin/less needed by zless-1.5-1.1.5.armv7hl". Does it mean that there is no less in the repository? As a workaround I just redirected output of perf to a file.

Ivan Sorokin ( 2017-12-26 02:30:41 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2017-12-26 01:31:13 +0200

Ivan Sorokin gravatar image

updated 2017-12-26 02:00:02 +0200

Installing packages on Sailfish OS is done using pkcon command. Here is a cheat sheet for package management on Sailfish OS.

4 commands are needed to install perf:

  • `devel-su` -- change current user to root
  • `pkcon refresh` -- update repositories
  • `pkcon search name [PACKAGE_NAME]` -- search a repository
  • `pkcon install [PACKAGE_NAME]` -- installing a package

In my case the perf package is called kernel-adaptation-sbj-perf. So in order to install these commands need to be performed:

$ devel-su
$ pkcon refresh
$ pkcon install kernel-adaptation-sbj-perf

Doing pkcon refresh is important as installing out-of-date packages might fail.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

1 follower


Asked: 2017-12-20 22:54:10 +0200

Seen: 294 times

Last updated: Dec 26 '17