We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

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 (https://together.jolla.com/question/176421/severe-lags-after-updating-to-2137/) 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-3.4.108.20161101.1-10.42.3.jolla.armv7hl Linux profiling with performance counters

But trying installing it shows an error:

$ pkcon install kernel-adaptation-sbj-perf Installing
Waiting in queue
Starting
Refreshing software list
Querying
Resolving dependencies
Fatal error: kernel-adaptation-sbj-perf-3.4.108.20161101.1-10.42.3.jolla.armv7hl requires libdw.so.1, but this requirement cannot be provided

edit retag flag offensive close delete

Comments

@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; 3.4.108.20171017.1-10.44.1 - I don't know if this will take care of the dependency or not.

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

Hm, in my case only 3.4.108.20161101.1-10.42.3.jolla.armv7hl is shown. Is your device Jolla 1 too?

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

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

Spam Hunter ( 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
1

@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
0

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

Follow
1 follower

Stats

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

Seen: 390 times

Last updated: Dec 26 '17