Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-14682

--use-cpu-profiler does not appear to be recorded in db.serverBuildInfo()

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.6.3
    • Component/s: Build
    • Fully Compatible
    • Server 2.7.4, Server 2.7.5, Server 2.7.6, BUILD 2 04/24/15

      After compiling from source with --use-cpu-profiler, it appears that this information is not recorded in db.serverBuildInfo().complierFlags.

      This info would be useful to be able to inspect the binary you are connected to and determine if its capable of cpu profiling so that profiles can be captured during a workload / run.

      Example of output with a binary built with --use-cpu-profiler

      > db.serverBuildInfo()
      {
              "version" : "2.6.3",
              "gitVersion" : "255f67a66f9603c59380b2a389e386910bbb52cb",
              "OpenSSLVersion" : "",
              "sysInfo" : "Linux bismark 3.14-1-amd64 #1 SMP Debian 3.14.7-1 (2014-06-16) x86_64 BOOST_LIB_VERSION=1_49",
              "loaderFlags" : "-fPIC -pthread -Wl,-z,now -rdynamic",
              "compilerFlags" : "-Wnon-virtual-dtor -Woverloaded-virtual -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -pipe -Werror -O3 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -fno-builtin-memcmp",
              "allocator" : "tcmalloc",
              "versionArray" : [
                      2,
                      6,
                      3,
                      0
              ],
              "javascriptEngine" : "V8",
              "bits" : 64,
              "debug" : false,
              "maxBsonObjectSize" : 16777216,
              "ok" : 1
      }
      

        1. profiler.diff
          2 kB
          Alvin Richards

            Assignee:
            jonathan.reams@mongodb.com Jonathan Reams
            Reporter:
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: