|
code
app/controllers/quiz/questions_controller.rb:27
|
35%
|
app/controllers/quiz/questions_controller.rb:27
- Average Self
-
54ms
- Average calls
- 1x
- Total Self
- 54ms
- Total Children
- 92ms
- Total runtime
- 147ms
Quiz::QuestionsController#new
|
|
sql
app/views/layouts/quiz_answer.html.erb:87
|
23%
|
app/views/layouts/quiz_answer.html.erb:87
- Average Self
-
35ms
- Average calls
- 1x
- Total Self
- 35ms
- Total Children
- 0ms
- Total runtime
- 35ms
SELECT sub_categories.*, count(quiz_answers.id) as quiz_answers_count FROM "sub_categories" INNER JOIN "quiz_questions" ON "quiz_questions"."categorisable_type" = ? AND "quiz_questions"."categorisable_id" = "sub_categories"."id" INNER JOIN "quiz_answers" ON "quiz_answers"."question_id" = "quiz_questions"."id" GROUP BY "sub_categories"."id" ORDER BY quiz_answers_count DESC LIMIT ?
|
|
sql
app/views/layouts/quiz_answer.html.erb:104
|
14%
|
app/views/layouts/quiz_answer.html.erb:104
- Average Self
-
7ms
- Average calls
- 3x
- Total Self
- 20ms
- Total Children
- 0ms
- Total runtime
- 20ms
SELECT topics.*, count(quiz_answers.id) as quiz_answers_count FROM "topics" INNER JOIN "quiz_questions" ON "quiz_questions"."categorisable_type" = ? AND "quiz_questions"."categorisable_id" = "topics"."id" INNER JOIN "quiz_answers" ON "quiz_answers"."question_id" = "quiz_questions"."id" GROUP BY "topics"."id" ORDER BY quiz_answers_count DESC LIMIT ?
SELECT "categories".* FROM "categories" WHERE "categories"."id" IN (?)
SELECT "groups".* FROM "groups" WHERE "groups"."id" IN (?)
|
|
sql
app/views/layouts/quiz_answer.html.erb:70
|
10%
|
app/views/layouts/quiz_answer.html.erb:70
- Average Self
-
15ms
- Average calls
- 1x
- Total Self
- 15ms
- Total Children
- 0ms
- Total runtime
- 15ms
SELECT categories.*, count(quiz_answers.id) as quiz_answers_count FROM "categories" INNER JOIN "quiz_questions" ON "quiz_questions"."categorisable_type" = ? AND "quiz_questions"."categorisable_id" = "categories"."id" INNER JOIN "quiz_answers" ON "quiz_answers"."question_id" = "quiz_questions"."id" GROUP BY "categories"."id" ORDER BY quiz_answers_count DESC LIMIT ?
|
|
sql
app/helpers/forms_helper.rb:80
|
8%
|
app/helpers/forms_helper.rb:80
- Average Self
-
15ms
- Average calls
- 0.8x
- Total Self
- 12ms
- Total Children
- 0ms
- Total runtime
- 12ms
SELECT DISTINCT "groups"."id", "groups"."name", "categories"."name", "categories"."slug" FROM "categories" INNER JOIN "groups" ON "groups"."id" = "categories"."group_id" LEFT OUTER JOIN "quiz_questions" ON "quiz_questions"."categorisable_type" = ? AND "quiz_questions"."categorisable_id" = "categories"."id" LEFT OUTER JOIN "sub_categories" ON "sub_categories"."category_id" = "categories"."id" LEFT OUTER JOIN "quiz_questions" "quiz_questions_sub_categories" ON "quiz_questions_sub_categories"."categorisable_type" = ? AND "quiz_questions_sub_categories"."categorisable_id" = "sub_categories"."id" LEFT OUTER JOIN "topics" ON "topics"."sub_category_id" = "sub_categories"."id" LEFT OUTER JOIN "quiz_questions" "quiz_questions_topics" ON "quiz_questions_topics"."categorisable_type" = ? AND "quiz_questions_topics"."categorisable_id" = "topics"."id" WHERE ("quiz_questions"."id" IS NOT NULL AND "quiz_questions"."status" = ? OR "quiz_questions_sub_categories"."id" IS NOT NULL AND "quiz_questions_sub_categories"."status" = ? OR "quiz_questions_topics"."id" IS NOT NULL AND "quiz_questions_topics"."status" = ?) AND "groups"."name" != ? AND "groups"."subject" = ? AND "groups"."exercice_type" = ? ORDER BY groups.id ASC
|
|
queue
queue
|
1%
|
queue
- Average Self
-
2.2ms
- Average calls
- 1x
- Total Self
- 2.2ms
- Total Children
- 0ms
- Total runtime
- 2.2ms
|
|
view
app/views/quiz/answers/_selects.html.erb
|
<1%
|
app/views/quiz/answers/_selects.html.erb
- Average Self
-
1.4ms
- Average calls
- 1x
- Total Self
- 1.4ms
- Total Children
- 12ms
- Total runtime
- 13ms
|
|
sql
lib/quiz/selection.rb:67
|
<1%
|
lib/quiz/selection.rb:67
- Average Self
-
1.5ms
- Average calls
- 0.8x
- Total Self
- 1.2ms
- Total Children
- 0ms
- Total runtime
- 1.2ms
SELECT ? AS one FROM "quiz_questions" WHERE ("quiz_questions"."categorisable_type" = ? AND "quiz_questions"."categorisable_id" IN (?)) OR "quiz_questions"."categorisable_type" = ? AND "quiz_questions"."categorisable_id" IN (?)) OR "quiz_questions"."categorisable_type" = ? AND "quiz_questions"."categorisable_id" IN (?))) LIMIT ?
|
|
view
app/views/layouts/application.html.erb
|
<1%
|
app/views/layouts/application.html.erb
- Average Self
-
1ms
- Average calls
- 1x
- Total Self
- 1ms
- Total Children
- 0ms
- Total runtime
- 1ms
|
|
gc
ruby/gc.c
|
<1%
|
ruby/gc.c
- Average Self
-
1.5ms
- Average calls
- 0.6x
- Total Self
- 0.9ms
- Total Children
- 0ms
- Total runtime
- 0.9ms
GC.start
|
|
sql
app/controllers/concerns/guest_user.rb:31
|
<1%
|
app/controllers/concerns/guest_user.rb:31
- Average Self
-
1.1ms
- Average calls
- 0.8x
- Total Self
- 0.9ms
- Total Children
- 0ms
- Total runtime
- 0.9ms
BEGIN
SELECT ? AS one FROM "users" WHERE "users"."email" = ? LIMIT ?
INSERT INTO "users" ("email", "encrypted_password", "reset_password_token", "reset_password_sent_at", "remember_created_at", "created_at", "updated_at", "username", "level", "last_name", "first_name", "phone_number", "resume", "stripe_id", "quiz_selected_questions") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id"
COMMIT
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/warden-1.2.9/lib/warden/manager.rb:30
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/warden-1.2.9/lib/warden/manager.rb:30
- Average Self
-
0.8ms
- Average calls
- 1x
- Total Self
- 0.8ms
- Total Children
- 147ms
- Total runtime
- 147ms
Warden::Manager
|
|
sql
app/controllers/concerns/guest_user.rb:27
|
<1%
|
app/controllers/concerns/guest_user.rb:27
- Average Self
-
0.5ms
- Average calls
- 1x
- Total Self
- 0.5ms
- Total Children
- 0ms
- Total runtime
- 0.5ms
SELECT "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT ?
|
|
sql
lib/quiz/selection.rb:11
|
<1%
|
lib/quiz/selection.rb:11
- Average Self
-
0.67ms
- Average calls
- 0.6x
- Total Self
- 0.4ms
- Total Children
- 0ms
- Total runtime
- 0.4ms
BEGIN
UPDATE "users" SET "updated_at" = ?, "quiz_selected_questions" = ? WHERE "users"."id" = ?
COMMIT
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/executor.rb:13
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/executor.rb:13
- Average Self
-
0.3ms
- Average calls
- 1x
- Total Self
- 0.3ms
- Total Children
- 149ms
- Total runtime
- 149ms
ActionDispatch::Executor
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-session-2.1.1/lib/rack/session/abstract/id.rb:267
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-session-2.1.1/lib/rack/session/abstract/id.rb:267
- Average Self
-
0.3ms
- Average calls
- 1x
- Total Self
- 0.3ms
- Total Children
- 148ms
- Total runtime
- 148ms
ActionDispatch::Session::CookieStore
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/railties-8.1.2/lib/rails/rack/logger.rb:20
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/railties-8.1.2/lib/rails/rack/logger.rb:20
- Average Self
-
0.3ms
- Average calls
- 1x
- Total Self
- 0.3ms
- Total Children
- 148ms
- Total runtime
- 148ms
Rails::Rack::Logger
|
|
view
app/views/quiz/questions/new.html.erb
|
<1%
|
app/views/quiz/questions/new.html.erb
- Average Self
-
0.2ms
- Average calls
- 1x
- Total Self
- 0.2ms
- Total Children
- 0ms
- Total runtime
- 0.2ms
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/sendfile.rb:130
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/sendfile.rb:130
- Average Self
-
0.1ms
- Average calls
- 1x
- Total Self
- 0.1ms
- Total Children
- 149ms
- Total runtime
- 149ms
Rack::Sendfile
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/cookies.rb:706
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/cookies.rb:706
- Average Self
-
0.1ms
- Average calls
- 1x
- Total Self
- 0.1ms
- Total Children
- 148ms
- Total runtime
- 148ms
ActionDispatch::Cookies
|
|
rack
ActionDispatch::Flash
|
<1%
|
ActionDispatch::Flash
- Average Self
-
0.1ms
- Average calls
- 1x
- Total Self
- 0.1ms
- Total Children
- 148ms
- Total runtime
- 148ms
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/static.rb:26
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/static.rb:26
- Average Self
-
0.1ms
- Average calls
- 1x
- Total Self
- 0.1ms
- Total Children
- 149ms
- Total runtime
- 149ms
ActionDispatch::Static
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/etag.rb:28
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/etag.rb:28
- Average Self
-
0.1ms
- Average calls
- 1x
- Total Self
- 0.1ms
- Total Children
- 147ms
- Total runtime
- 147ms
Rack::ETag
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/conditional_get.rb:28
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/conditional_get.rb:28
- Average Self
-
0.1ms
- Average calls
- 1x
- Total Self
- 0.1ms
- Total Children
- 147ms
- Total runtime
- 148ms
Rack::ConditionalGet
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/http/content_security_policy.rb:37
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/http/content_security_policy.rb:37
- Average Self
-
0.1ms
- Average calls
- 1x
- Total Self
- 0.1ms
- Total Children
- 148ms
- Total runtime
- 148ms
ActionDispatch::ContentSecurityPolicy::Middleware
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/remote_ip.rb:95
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/remote_ip.rb:95
- Average Self
-
0.1ms
- Average calls
- 1x
- Total Self
- 0.1ms
- Total Children
- 148ms
- Total runtime
- 149ms
ActionDispatch::RemoteIp
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/runtime.rb:22
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/runtime.rb:22
- Average Self
-
0.1ms
- Average calls
- 1x
- Total Self
- 0.1ms
- Total Children
- 149ms
- Total runtime
- 149ms
Rack::Runtime
|
|
view
app/views/quiz/questions/_form.html.erb
|
<1%
|
app/views/quiz/questions/_form.html.erb
- Average Self
-
0ms
- Average calls
- 1x
- Total Self
- 0ms
- Total Children
- 0ms
- Total runtime
- 0ms
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/callbacks.rb:28
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/callbacks.rb:28
- Average Self
-
0ms
- Average calls
- 1x
- Total Self
- 0ms
- Total Children
- 148ms
- Total runtime
- 148ms
ActionDispatch::Callbacks
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/debug_exceptions.rb:30
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/debug_exceptions.rb:30
- Average Self
-
0ms
- Average calls
- 1x
- Total Self
- 0ms
- Total Children
- 148ms
- Total runtime
- 148ms
ActionDispatch::DebugExceptions
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/show_exceptions.rb:31
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/show_exceptions.rb:31
- Average Self
-
0ms
- Average calls
- 1x
- Total Self
- 0ms
- Total Children
- 148ms
- Total runtime
- 148ms
ActionDispatch::ShowExceptions
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/railties-8.1.2/lib/rails/rack/silence_request.rb:27
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/railties-8.1.2/lib/rails/rack/silence_request.rb:27
- Average Self
-
0ms
- Average calls
- 1x
- Total Self
- 0ms
- Total Children
- 148ms
- Total runtime
- 148ms
Rails::Rack::SilenceRequest
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/request_store-1.7.0/lib/request_store/middleware.rb:16
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/request_store-1.7.0/lib/request_store/middleware.rb:16
- Average Self
-
0ms
- Average calls
- 1x
- Total Self
- 0ms
- Total Children
- 149ms
- Total runtime
- 149ms
RequestStore::Middleware
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/request_id.rb:31
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/actionpack-8.1.2/lib/action_dispatch/middleware/request_id.rb:31
- Average Self
-
0ms
- Average calls
- 1x
- Total Self
- 0ms
- Total Children
- 149ms
- Total runtime
- 149ms
ActionDispatch::RequestId
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-rewrite-1.5.1/lib/rack/rewrite.rb:18
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-rewrite-1.5.1/lib/rack/rewrite.rb:18
- Average Self
-
0ms
- Average calls
- 1x
- Total Self
- 0ms
- Total Children
- 149ms
- Total runtime
- 149ms
Rack::Rewrite
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/head.rb:14
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/head.rb:14
- Average Self
-
0ms
- Average calls
- 1x
- Total Self
- 0ms
- Total Children
- 148ms
- Total runtime
- 148ms
Rack::Head
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/tempfile_reaper.rb:16
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/tempfile_reaper.rb:16
- Average Self
-
0ms
- Average calls
- 1x
- Total Self
- 0ms
- Total Children
- 147ms
- Total runtime
- 147ms
Rack::TempfileReaper
|
|
rack
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/method_override.rb:19
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/rack-3.2.4/lib/rack/method_override.rb:19
- Average Self
-
0ms
- Average calls
- 1x
- Total Self
- 0ms
- Total Children
- 149ms
- Total runtime
- 149ms
Rack::MethodOverride
|
|
code
/app/vendor/bundle/ruby/4.0.0/gems/railties-8.1.2/lib/rails/engine.rb:532
|
<1%
|
/app/vendor/bundle/ruby/4.0.0/gems/railties-8.1.2/lib/rails/engine.rb:532
- Average Self
-
0ms
- Average calls
- 1x
- Total Self
- 0ms
- Total Children
- 149ms
- Total runtime
- 149ms
Rails::Engine#call
|